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
Changing Lantern Spotlight color mid game
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#5
RE: Changing Lantern Spotlight color mid game

(03-26-2016, 02:49 PM)Reminiscity Wrote: I can't get it to work Sad

The lantern entity name is "lantern_mandus". I find this method a bit wierd because how would the engine know what is the entity name and what is the spotlight name when its only separated with an underscore? And in this case the entity name has an underscore in it which makes things even wierder.

SetLightVisible("lantern_mandus_SpotLight_2", false);

Do what Fatalist wrote above.

SetLightVisible("PlayerHands_SpotLight_1", false);

Be sure to check the Model Editor to see which spotlight you want to fade, and make sure it is the correct spotlight you're referencing.

Discord: Romulator#0001
[Image: 3f6f01a904.png]
03-26-2016, 03:34 PM
Find


Messages In This Thread
RE: Changing Lantern Spotlight color mid game - by Romulator - 03-26-2016, 03:34 PM



Users browsing this thread: 2 Guest(s)