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 Not Being Removed From Inventory After Use
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: Key Not Being Removed From Inventory After Use

Errr... nope.

It is:

void OnStart()
{

AddUseItemCallback("OpenDoor", "leveldoor1_key", "leveldoor1", "UnlockLevelDoor", true);
}

void UnlockLevelDoor (string &in asItem, string &in asEntity)
{
///Door stuff
RemoveItem("leveldoor1_key");
}

It would be certainly better if you posted the whole script Wink but, by what I can see, that's the issue.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
12-07-2012, 08:44 PM
Find


Messages In This Thread
RE: Key Not Being Removed From Inventory After Use - by The chaser - 12-07-2012, 08:44 PM



Users browsing this thread: 1 Guest(s)