Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting problem please help
ModestWalrus Offline
Junior Member

Posts: 26
Threads: 3
Joined: Jan 2012
Reputation: 0
#3
RE: Scripting problem please help

(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 ()
{
}
(This post was last modified: 02-13-2012, 03:41 AM by ModestWalrus.)
02-13-2012, 03:39 AM
Website Find


Messages In This Thread
Scripting problem please help - by ModestWalrus - 02-12-2012, 06:52 PM
RE: Scripting problem please help - by ModestWalrus - 02-13-2012, 03:39 AM
RE: Scripting problem please help - by Tanshaydar - 02-13-2012, 04:03 AM
RE: Scripting problem please help - by flamez3 - 02-13-2012, 04:41 AM



Users browsing this thread: 1 Guest(s)