The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
TheIcyPickle Offline
Member

Posts: 80
Threads: 16
Joined: Feb 2011
Reputation: 0
#1
Key On a Cabinet

Ok, so quick question

what would I use to make a key on a closet door unlock it


Like

would this work

void OnStart()

{
AddUseItemCallback("", "key1", "door1", "KeyOnDoor", true);

}


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


but for a closet door? I dont know what function you would use..
07-21-2012, 02:19 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)