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
FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY*
Putkimato Offline
Junior Member

Posts: 25
Threads: 8
Joined: Jun 2012
Reputation: 0
#2
RE: FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY*

// Run first time starting map

void OnStart()
{
AddUseItemCallback("", "kaasje", "eerstedeur", "UsedKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asitem, string &in asEntity)
{
SetSwingDoorLocked("eerstedeur", false, true);
PlaySoundAtEntity("", "unlock_door", "eerstedeur", 0, false);
RemoveItem("kaasje");
}
////////////////////////////

// Run when entering map

void OnEnter()
{

}
////////////////////////////

// Run when leaving map

void OnLeave()

{

}

Try this, you forgot these { } at end
(This post was last modified: 06-10-2012, 03:06 PM by Putkimato.)
06-10-2012, 03:04 PM
Find


Messages In This Thread
RE: FATAL ERROR COULD NOT LOAD SCRIPT *CUSTOM STORY* - by Putkimato - 06-10-2012, 03:04 PM



Users browsing this thread: 1 Guest(s)