void OnStart()
{
AddEntityCollideCallback("Player", "shock", "shock", 1, true);
}
void shock(string &in asParent , string &in asChild , int alState)
{
GiveSanityDamage(7.0f, true);
PlaySoundAtEntity("", "13_press_fail.snt", "Player", 0, false);
PlaySoundAtEntity("", "13_press_done.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare.snt", "Player", 0, false);
PlaySoundAtEntity("Player", "13_steam.snt", "pipes_thick_bend_short_1", 0, false);
CreateParticleSystemAtEntity("", ps_steam.ps", "steam0", false);
StartPlayerLookAt("look", 4.0, 7.0f, "");
AddTimer("Timer", 0.7f, "looking");
}
void looking(string &in asTimer)
{
StopPlayerLookAt();
}
void OnLeave()
{
}
^
Thats the right file ;D |
I need help
i forgot to copy the clamp ;D