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
Level Editor Help How to hide light?
Buchka123 Offline
Junior Member

Posts: 14
Threads: 8
Joined: Oct 2017
Reputation: 1
#3
RE: How to hide light?

(10-21-2017, 12:47 PM)Romulator Wrote: What happens when you try to disable the light itself in the entity? Before you hide the entity, include this line:

PHP Code: (Select All)
SetLampLit("MonsterName_LightName"falsefalse); 

Where MonsterName is the name of your entity, and the LightName is the name of the light attached to the entity. Open up the monster in the Model Editor and check the name of the Light, and put that name there.

If it were, for example, called InfectedMonster, and the light was called SpotLight_1, then the code would look like:

PHP Code: (Select All)
SetLampLit("InfectedMonster_SpotLight_1"falsefalse); 

Idea
Thank you very much! It is working now! A little remark: the function to disable lights is - SetLightVisible("", bool), SetLampLit for lamps. Angel
10-21-2017, 03:23 PM
Find


Messages In This Thread
How to hide light? - by Buchka123 - 10-21-2017, 09:00 AM
RE: How to hide light? - by Romulator - 10-21-2017, 12:47 PM
RE: How to hide light? - by Buchka123 - 10-21-2017, 03:23 PM
RE: How to hide light? - by Romulator - 10-21-2017, 05:35 PM
RE: How to hide light? - by HappyMatt12345 - 10-23-2018, 02:01 AM
RE: How to hide light? - by Mudbill - 10-23-2018, 10:00 PM



Users browsing this thread: 1 Guest(s)