Removing lantern from Inventory - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Removing lantern from Inventory (/thread-9522.html) |
Removing lantern from Inventory - Rapture - 08-01-2011 I'm using Code: RemoveItem("lantern.ent"); The lantern was given to you in the first map, but the code is used in another map. Code: GiveItemFromFile("lantern", "lantern.ent"); The names match up, so what am I doing wrong? RE: Removing lantern from Inventory - Juby - 08-01-2011 (08-01-2011, 12:40 AM)Rapture Wrote: There should not be .ent in the RemoveItem command, just latern. RE: Removing lantern from Inventory - Rapture - 08-01-2011 thanks alot RE: Removing lantern from Inventory - Kyle - 08-01-2011 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); |