(02-12-2012, 08:24 PM)Your Computer Wrote: You forgot to close OnEnter and AddTimer is out of place.
Now I have this and it wont open
FATAL ERROR
main (2,1) : ERR : Expected , or ;
void OnEnter ()
}
{
AddEntityCollideCallback("Player", "hallway1", "statuemanspawns", true, 1);
void statuemanspawns(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("statueman1", true);
PlaySoundAtEntity("", "react_breath.sfn", "Player", 0.5, false);
StartPlayerLookAt("statueman1", 15, 15, "");
AddTimer("", 1.0f, "Stoplooking");
void Stoplooking(string &in asTimer)
{
StopPlayerLookAt();
}
}
//-------------------------------------------------------
void OnLeave ()
{
}