void OnEnter()
{
AddEntityCollideCallback("Player", "morspa4", "morspa4", true, 1);
}
void morspa4(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("1", true);
SetEntityActive("2", true);
SetEntityActive("3", true);
SetEntityActive("4", true);
AddTimer("Scare", 0.01f, "Scare1");
}
void Scare1(string &in asTimer)
{
GiveSanityDamage(60, true);
PlaySoundAtEntity("", "react_scare.snt", "Player", 0, false);
SetMessage("Warnings", "Run_1", 0);
}
Then add this to your .lang
<CATEGORY Name="Warnings">
<Entry Name="Run_1"> Run, RUN! </Entry>
</CATEGORY>