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
How do I trigger lights?
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#2
RE: How do I trigger lights?

Lights cannot be toggled via the level editor like most other entities, they only work through scripts. Use this function:

SetLightVisible(string& asLightName, bool abVisible);


Place it under void OnStart() and use false for the Boolean argument. When you want to use it in the function to trigger it, use it again, except making the bool true.

Hope that helped.

I rate it 3 memes.
08-10-2012, 02:46 AM
Find


Messages In This Thread
How do I trigger lights? - by Melvin - 08-10-2012, 02:39 AM
RE: How do I trigger lights? - by Adny - 08-10-2012, 02:46 AM
RE: How do I trigger lights? - by Melvin - 08-10-2012, 02:58 AM



Users browsing this thread: 1 Guest(s)