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
Removing lantern from Inventory
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#1
Removing lantern from Inventory

I'm using
RemoveItem("lantern.ent");
but it won't remove the lantern from my inventory.

The lantern was given to you in the first map, but the code is used in another map.
GiveItemFromFile("lantern", "lantern.ent");

The names match up, so what am I doing wrong?
(This post was last modified: 08-01-2011, 01:19 AM by Rapture.)
08-01-2011, 12:40 AM
Find
Juby Away
Senior Member

Posts: 290
Threads: 2
Joined: May 2011
Reputation: 5
#2
RE: Removing lantern from Inventory

(08-01-2011, 12:40 AM)Rapture Wrote:
RemoveItem("lantern.ent");

There should not be .ent in the RemoveItem command, just latern.

Insanity. Static.
08-01-2011, 01:07 AM
Find
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#3
RE: Removing lantern from Inventory

thanks alot
08-01-2011, 01:19 AM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#4
RE: Removing lantern from Inventory

To remove the lantern if the player has it equipped, simply disable the lantern and then remove item with maybe a time break between both actions. You also need a SetLanternDisabled command function.

SetLanternDisabled(bool abX);

SetLanternDisabled(bool abX);

RemoveItem(string& asName);

(This post was last modified: 08-01-2011, 01:23 AM by Kyle.)
08-01-2011, 01:21 AM
Find




Users browsing this thread: 1 Guest(s)