08-01-2011, 09:05 PM
My code wont work :S
Help a scripter out? =)
-Dizturbed
Code:
void OnStart()
{
AddEntityCollideCallback("Player", "HitDoor", "Creepy", true, 0);
}
void Creepy(string &in asParent, string &in asChild, int alState)
{
CreateParticleSystemAtEntity("", "ps_hit_wood", "HitArea", false);
CreateParticleSystemAtEntity("", "ps_hit_wood", "HitArea_1", false);
PlayGuiSound("hit_wood1.ogg", 7.0f);
PlayGuiSound("hit_wood1.ogg", 7.0f);
PlaySoundAtEntity("", "21_scream9", "Creep", 0, false);
StartPlayerLookAt("cellar_wood01_slow_1", 10.0f, 10.0f, "");
AddTimer("Timer", 1.0f, "NoLook");
}
void NoLook(string &in asTimer)
{
StopPlayerLookAt();
}
-Dizturbed