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
Problem loading Custom Story!
Athom Offline
Junior Member

Posts: 32
Threads: 6
Joined: Jul 2012
Reputation: 1
#3
RE: Problem loading Custom Story!

(07-15-2012, 09:16 PM)Apjjm Wrote: you are missing a closing brace in the "KeyOnDoor" function, as well as stuff in OnLeave:

////////////////////////////
// Run first time starting map
void OnStart()
{
AddUseItemCallback("", "key_1", "door_1", "KeyOnDoor", true);
AddEntityCollideCallback("Player", "AreaHelp", "CollideAreaHelp", false, 1);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("door_1", false, true);
PlaySoundAtEntity("", "unlock_door", "door_1", 0, false);
RemoveItem("key_1");
} /* You were missing a brace here */

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

////////////////////////////
// Run when leaving map
void OnLeave()
{
/* You were missing braces and the brackets in the function */
}
Thank you very much, bro! I feel pretty stupid after finding this out.

Current Projects: The Cure 15%
4Shared Download: http://ow.ly/cqjk4
Youtube Video: http://ow.ly/cq2LR
07-16-2012, 12:38 AM
Find


Messages In This Thread
Problem loading Custom Story! - by Athom - 07-15-2012, 09:31 AM
RE: Problem loading Custom Story! - by Apjjm - 07-15-2012, 09:16 PM
RE: Problem loading Custom Story! - by Athom - 07-16-2012, 12:38 AM



Users browsing this thread: 3 Guest(s)