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
Key On a Cabinet
SilentHideButFine Offline
Member

Posts: 156
Threads: 38
Joined: May 2012
Reputation: 6
#2
RE: Key On a Cabinet

void OnStart()

{
AddUseItemCallback("", "Thekey", "TheDoor", "Thefunc", true);
}


void Thefunc(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("TheDoor", false, true);
PlaySoundAtEntity("", "unlock_door", "TheDoor", 0, false);
RemoveItem("Thekey");
}

try that!

[url= http://www.moddb.com/mods/jessehmusic [/url] ,HOSPITAL OF HORROR MOD
07-21-2012, 02:57 AM
Find


Messages In This Thread
Key On a Cabinet - by TheIcyPickle - 07-21-2012, 02:19 AM
RE: Key On a Cabinet - by Adny - 07-21-2012, 03:08 AM
RE: Key On a Cabinet - by TheIcyPickle - 07-21-2012, 07:01 AM
RE: Key On a Cabinet - by SilentHideButFine - 07-21-2012, 02:57 AM
RE: Key On a Cabinet - by TheIcyPickle - 07-21-2012, 03:11 AM



Users browsing this thread: 1 Guest(s)