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 to Unlock Chest
Ouroboros Offline
Junior Member

Posts: 20
Threads: 0
Joined: Jul 2011
Reputation: 0
#2
RE: Key to Unlock Chest

You have to add a useitemcallback
/
AddUseItemCallback("can be empty", "key name", "chest name", "function name to call", true/false for removing the callback);
And then you have the function it calls look something like
void MyFunc(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("name of chest", false, true);
//if you want the item removed after use,
RemoveItem("name of key");
}
(This post was last modified: 07-22-2011, 07:19 AM by Ouroboros.)
07-22-2011, 07:18 AM
Find


Messages In This Thread
Key to Unlock Chest - by Obliviator27 - 07-22-2011, 06:59 AM
RE: Key to Unlock Chest - by Ouroboros - 07-22-2011, 07:18 AM
RE: Key to Unlock Chest - by Obliviator27 - 07-22-2011, 07:30 AM
RE: Key to Unlock Chest - by Ouroboros - 07-22-2011, 07:33 AM
RE: Key to Unlock Chest - by Obliviator27 - 07-22-2011, 09:01 AM
RE: Key to Unlock Chest - by Rokotain - 07-22-2011, 10:40 AM
RE: Key to Unlock Chest - by WatzUpzPeepz - 07-22-2011, 01:35 PM
RE: Key to Unlock Chest - by ferryadams11 - 07-22-2011, 09:31 AM
RE: Key to Unlock Chest - by Poppuhik42 - 07-22-2011, 01:27 PM
RE: Key to Unlock Chest - by Ouroboros - 07-22-2011, 02:00 PM
RE: Key to Unlock Chest - by Obliviator27 - 07-22-2011, 08:36 PM



Users browsing this thread: 1 Guest(s)