void RoomScare(string &in asParent, string &in asChild, int alState)
{
SetPlayerActive(false);
AddPropImpulse("mansion_7", 0, 0, -50, "world");
SetSwingDoorLocked("mansion_7", true, true);
GiveSanityDamage(1, true);
SetPlayerActive(true);
AddTimer("roomscarefinish", 5.0f, "RoomScareFinish");
SetEntityActive("servant_grunt_3", true);
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_30", 1.0f, "idle");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_31", 1.0f, "idle");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_32", 1.0f, "idle");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_33", 1.0f, "idle");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_34", 1.0f, "idle");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_35", 1.0f, "idle");
AddEnemyPatrolNode("servant_grunt_3", "PathNodeArea_36", 1.0f, "idle");
}
void RoomScareFinish(string &in asTimer) //Wrong callback syntax. You have () which is not recognizable as the callback syntax for the AddTimer.
{
GiveSanityBoostSmall();
StartEffectFlash(0.3f, 1.0f, 1.0f);
SetSwingDoorLocked("mansion_7", false, true);
SetEntityActive("servant_grunt_3", false);
}
Fixed it.