TheIcyPickle
Member
Posts: 80
Threads: 16
Joined: Feb 2011
Reputation:
0
|
RE: Closet script need help !!! :)
KeyOnDoor should work.
For example,
AddUseItemCallback("", "keyname", "closetname", "KeyOnDoor", true);
{
void KeyOnDoor(string &in asItem, string &in asEntity)
SetSwingDoorLocked("closetname", false, true);
PlaySoundAtEntity("", "unlock_door", "closetname", 0, false);
RemoveItem("keyname");
}
I have done this before, KeyOnDoor works, you can name it what you like, but what I have there is what should work.
Hope this explains it better!
(This post was last modified: 08-11-2012, 03:05 AM by TheIcyPickle.)
|
|
08-11-2012, 02:50 AM |
|