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
Cant be void? Script Help!
Loveridge Offline
Junior Member

Posts: 21
Threads: 8
Joined: Nov 2011
Reputation: 0
#6
RE: Cant be void? Script Help!

(01-25-2012, 10:55 PM)Statyk Wrote:
(01-25-2012, 10:47 PM)Loveridge Wrote: Now it says expected ")" or ";" Sad
whoops, I missed a "}"... here:


void OnStart()
{
AddEntityCollideCallback("Player", "lighttrigger", "lighton", true, 1);
}

void lighton(string in asParent, string &in asChild, int alState)
{
SetLampLit("INTERNAL_LAMP_NAME", true, true);
}

////////////////////////////
// Run when leaving map
void OnLeave()
{

}



////////////////////////////
// Run when entering map
void OnEnter()
{

}
Still says it...
01-25-2012, 11:01 PM
Find


Messages In This Thread
Cant be void? Script Help! - by Loveridge - 01-25-2012, 09:45 PM
RE: Cant be void? Script Help! - by Statyk - 01-25-2012, 09:49 PM
RE: Cant be void? Script Help! - by Your Computer - 01-25-2012, 10:17 PM
RE: Cant be void? Script Help! - by Loveridge - 01-25-2012, 10:47 PM
RE: Cant be void? Script Help! - by Statyk - 01-25-2012, 10:55 PM
RE: Cant be void? Script Help! - by Loveridge - 01-25-2012, 11:01 PM
RE: Cant be void? Script Help! - by Statyk - 01-25-2012, 11:10 PM



Users browsing this thread: 2 Guest(s)