RE: One question?
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".
}
Trying is the first step to success.
|