When you make a function inside of a function with a timer, I don't know how to write that correctly, please tell me how to fix?
Quote:void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Scare_1", true, 1);
}
void Scare_1(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "general_chain_rattle_single.snt", 0, false);
GiveSanityDamage(5.0f, true);
AddTimer("Timer_1", 4.0f, "looking");
void looking(string &in asTimer)
{
SetEntityActive("human_skull_1", true);
StartPlayerLookAt("human_skull_1", 6.0f, 7.0f, "");
GiveSanityDamage(5.0f, true);
}