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
Script Help Take lantern from player?
goodcap Offline
Member

Posts: 193
Threads: 112
Joined: Jun 2012
Reputation: 3
#1
Take lantern from player?

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
06-13-2016, 05:43 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#2
RE: Take lantern from player?

PHP Code: (Select All)
SetLanternActive(falsefalse); 

First false disables it, second one disables the effects (lowering it and sounds). Put it before RemoveItem(); Smile

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 06-13-2016, 08:57 AM by Romulator.)
06-13-2016, 08:56 AM
Find




Users browsing this thread: 1 Guest(s)