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!
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: Cant be void? Script Help!

I advise you to look at other custom stories' script and compare to your own. But for now, your .hps should look like this:

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()
{

}



______________________________________________

It was saying it can't be void because the syntax you put in does not exist.
(This post was last modified: 01-25-2012, 09:50 PM by Statyk.)
01-25-2012, 09:49 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: 3 Guest(s)