02-12-2012, 06:52 PM
I made this script and it has an error saying
main (22,1) : ERR : Unexpected end of file
-------------------
Heres my script
----------------
void OnEnter ()
/////////////////////////////////////////////////////////
{
AddEntityCollideCallback("Player", "hallway1", "statuemanspawns", true, 1);
void statuemanspawns(string &in asParent, string &in asChild, int alState);
{
SetEntityActive("statueman1", true);
PlaySoundAtEntity("", "react_breath4.ogg", "Player", 0.5, false);
StartPlayerLookAt("statueman1", 15, 15, "");
}
AddTimer("", 1.0f, "Stoplooking");
void Stoplooking(string &in asTimer);
{
StopPlayerLookAt();
}
////////////////////////////////////
void OnLeave()
{
}
main (22,1) : ERR : Unexpected end of file
-------------------
Heres my script
----------------
void OnEnter ()
/////////////////////////////////////////////////////////
{
AddEntityCollideCallback("Player", "hallway1", "statuemanspawns", true, 1);
void statuemanspawns(string &in asParent, string &in asChild, int alState);
{
SetEntityActive("statueman1", true);
PlaySoundAtEntity("", "react_breath4.ogg", "Player", 0.5, false);
StartPlayerLookAt("statueman1", 15, 15, "");
}
AddTimer("", 1.0f, "Stoplooking");
void Stoplooking(string &in asTimer);
{
StopPlayerLookAt();
}
////////////////////////////////////
void OnLeave()
{
}