05-23-2011, 08:28 PM
Here is my script:
void OnStart()
{
AddEntityCollideCallback("Player", "DustFall", "CollideDustFallEffect", true, 1);
}
void CollideDustFallEffect(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("chandeller_large_2", 10, 50, "");
AddTimer("", 5.0f, "TimerStopLook");
SetEntityActive("ParticleSystem_4" , true);
SetEntityActive("stonefall" , true);
}
void TimerStopLook(string &in asTimer)
{
StopPlayerLookAt();
}
Can you find whats wrong with it? I'm such a noob at scripting...
Wierd thing is the particles activate but nothing else happens?
Thanks for reading!
void OnStart()
{
AddEntityCollideCallback("Player", "DustFall", "CollideDustFallEffect", true, 1);
}
void CollideDustFallEffect(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("chandeller_large_2", 10, 50, "");
AddTimer("", 5.0f, "TimerStopLook");
SetEntityActive("ParticleSystem_4" , true);
SetEntityActive("stonefall" , true);
}
void TimerStopLook(string &in asTimer)
{
StopPlayerLookAt();
}
Can you find whats wrong with it? I'm such a noob at scripting...
Wierd thing is the particles activate but nothing else happens?
Thanks for reading!