![]() |
One question? - 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: One question? (/thread-17234.html) Pages:
1
2
|
RE: One question? - FlawlessHappiness - 07-24-2012 void OnStart() { AddEntityCollideCallback("Player", "ScriptArea_1", "LightsOut", true, 1); This red text is your callback } void LightsOut(string &in asParent, string &in asChild, int alState) It is marked red here too. { SetLampLit("candlestick_floor_1", false, true); AddTimer("", 0, "Out2"); This blue text is the callback of the timer. But the timer is 0 seconds, and there is no other "Out2" in your script, so delete that line CreateParticleSystemAtEntity("ParticleSystem_1", "ps_dust_whirl.ps", "LightsOut", false); This green text is where the particle is when it starts. You make a new ScriptArea and paste the name in here, (Where the particle should be made) PlaySoundAtEntity("", "general_wind_whirl.snt", "LightsOut", 0, false); This pink text is where the sound is being played. For beginners, you should use "Player". } |