Frictional Games Forum (read-only)
Problem with call function - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Problem with call function (/thread-8767.html)



Problem with call function - Paulpolska - 06-23-2011

How to call a function when player Is in scrpit area ?? I try but i dont know how do it ;/


RE: Problem with call function - WatzUpzPeepz - 06-23-2011

Spoiler below!
AddEntityCollideCallback("Player", "nameofthearea", "nameoffunc", true, 1);
Put that inside of your voidOnStart and your ready.


RE: Problem with call function - Paulpolska - 06-24-2011

When i Uses this script I setLampLit for true but lamp only lit. Light around is dead (i dont know how write this)


RE: Problem with call function - WatzUpzPeepz - 06-24-2011

I dont know that setLampLit thing so I cant help you sorry.


RE: Problem with call function - rojkish - 06-24-2011

(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


RE: Problem with call function - xtron - 06-24-2011

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


RE: Problem with call function - Paulpolska - 06-24-2011

I already solved this problem ;] i used "nolights lamp" instead of "lights" BUT I ALL THE TIME DONT KNOW HOW CREATE CEILING


RE: Problem with call function - xtron - 06-24-2011

so...you want to know how to create ceiling?


RE: Problem with call function - Paulpolska - 06-24-2011

No i dont know floor i have but celling this is black magic for me ?!

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