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
Can anyone help me find the Script Error??
Kazakarumariou Away
An angry man.

Posts: 283
Threads: 8
Joined: Jul 2012
Reputation: 14
#3
RE: Can anyone help me find the Script Error??

////////////////////////////
//Run First Time Starting map
void OnStart()
{
AddEntityCollideCallback("Player", "Music_1", "start", true, 1);
AddUseItemCallback("", "key_Tomb_1", "Doortodeath_1", "UsedKeyOnDoor", true);
}

void start(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "Scary.snt", "Player", 0, false);
}


void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetLevelDoorLocked("Doortodeath_1", false);
PlaySoundAtEntity("", "unlock_door", "Doortodeath_1", 0.0f, false);
RemoveItem("key_Tomb_1");
AddDebugMessage("Key On Door", false);
}


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

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

}
09-15-2012, 05:57 PM
Find


Messages In This Thread
RE: Can anyone help me find the Script Error?? - by Kazakarumariou - 09-15-2012, 05:57 PM



Users browsing this thread: 1 Guest(s)