[SOLVED] Lights on script - 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: [SOLVED] Lights on script (/thread-29654.html) |
[SOLVED] Lights on script - Aletho - 02-24-2015 Hey guys! I'm a bit rusty in creating custom stories, I've just returned to doing it because of a project in school. I'm trying to create a script area where the lights throughout the building becomes lit, in a sequence. My problem is that nothing happens when the player enters the script area, it won't even activate the first torch. What am I missing? Probably something very simple here's the script: Spoiler below!
The name of the script area is "TorchOnSchool" RE: Lights on script - Daemian - 02-24-2015 You're missing the callback declaration inside OnStart I'm guessing you want one for that TorchOnSchool function with those parameters, so you need a collide callback. If I'm not mistaken it's AddEntityCollideCallback ( parent, child, function, deleteOnUse, state ); Just check the wiki. got the link? RE: Lights on script - Aletho - 02-24-2015 (02-24-2015, 09:06 PM)Daemian Wrote: You're missing the callback declaration inside OnStart Yeah I have the link to the wiki and I found the function you're referring to, i'm going to try it out tomorrow, thanks for the help! :-) |