Frictional Games Forum (read-only)

Full Version: Problem with call function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to call a function when player Is in scrpit area ?? I try but i dont know how do it ;/
Spoiler below!
AddEntityCollideCallback("Player", "nameofthearea", "nameoffunc", true, 1);
Put that inside of your voidOnStart and your ready.
When i Uses this script I setLampLit for true but lamp only lit. Light around is dead (i dont know how write this)
I dont know that setLampLit thing so I cant help you sorry.
(06-24-2011, 07:16 AM)Paulpolska Wrote: [ -> ]When i Uses this script I setLampLit for true but lamp only lit. Light around is dead (i dont know how write this)

Rephrase please, I unsure what you're meaning
Here's some possibilities:

1: Uncheck the lit box.
2: Make sure the lamp is active.
3: SetLampLit("LAMP NAME", true, true);

It works pretty fine for me Smile
I already solved this problem ;] i used "nolights lamp" instead of "lights" BUT I ALL THE TIME DONT KNOW HOW CREATE CEILING
so...you want to know how to create ceiling?
No i dont know floor i have but celling this is black magic for me ?!

Edit: // Already know lol that was easy ;/