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
Level Editor Help I Have A problem in Script!!! Please Help me!!
Unearthlybrutal Offline
Posting Freak

Posts: 775
Threads: 12
Joined: May 2011
Reputation: 26
#4
RE: I Have A problem in Script!!! Please Help me!!

Smile Use this:
Spoiler below!
////////////////////////////
// Run when entering map
void OnEnter()
{
AddUseItemCallback("", "awesomekey_1", "mansion_1", "KeyOnDoor", true);
}

void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("mansion_1", false, true);
PlaySoundAtEntity("", "unlock_door", "mansion_1", 0, false);
RemoveItem("awesomekey_1");
}



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

}


When Life No Longer Exists
Full-conversion mod
03-24-2012, 11:58 AM
Website Find


Messages In This Thread
RE: I Have A problem in Script!!! Please Help me!! - by Unearthlybrutal - 03-24-2012, 11:58 AM



Users browsing this thread: 1 Guest(s)