The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
HELP!
ryan223456 Offline
Junior Member

Posts: 2
Threads: 1
Joined: Aug 2012
Reputation: 0
#1
HELP!

i am making a new custom story and i am naming it "Forever" i am having troubles with scripting, though,
here is what i have in there,


////////////////////////////
//Run when starting map
void OnStart()

{
AddEntityCollideCallback("Player", "explode_scare", "Explode", true, 1);
}


void Explode(string &in asParent, string &in asChild, int alState)

{
SetPropHealth("boom", 0);
}

void KeyOnDoor(string &in asItem, string &in asEntity)

{
AddUseItemCallback("", "key", "Locked Door", "KeyOnDoor", true);
}


{
SetSwingDoorLocked("Locked Door", false, true);
PlaySoundEntity("", "unlock_door", "Locked Door", 0, false);
RemoveItem("key");
}

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

}

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

,everytime i go in the game it says "unexpected token "{"
any revisions would be greatly appreciated, and hopefully i will figure everything out from there.
thanks, bye.
08-25-2012, 04:45 AM
Find


Messages In This Thread
HELP! - by ryan223456 - 08-25-2012, 04:45 AM
RE: HELP! - by Adny - 08-25-2012, 04:53 AM
RE: HELP! - by ryan223456 - 08-25-2012, 05:50 PM
RE: HELP! - by FlawlessHappiness - 08-25-2012, 06:26 PM



Users browsing this thread: 1 Guest(s)