![]() |
[SCRIPT] Take lantern from player? - 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: [SCRIPT] Take lantern from player? (/thread-49483.html) |
Take lantern from player? - goodcap - 06-13-2016 My mod has a dream sequence where you walk around with a lantern in a dark area. As soon as the scare in the map happens you wake up scared shitless. But the player is still holding the lantern. How do I make the lantern disappear so the player won't wake up holding a lantern which is strange. "RemoveItem("Lantern");" removes it from the inventory but the player is still holding it. Thanks RE: Take lantern from player? - Romulator - 06-13-2016 PHP Code: SetLanternActive(false, false); First false disables it, second one disables the effects (lowering it and sounds). Put it before RemoveItem(); ![]() |