Hello, i want to import Penumbra's infected with flashlight model. When i put it in level editor on my map and deactivate it, light from flashlight become hidden, but when i enter the game , light is not hidden, but model is. How to make light deactivated while model too? Sorry for my English if it is bad.
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:
(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:
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:
(10-21-2017, 03:23 PM)Buchka123 Wrote:
Thank you very much! It is working now! A little remark: the function to disable lights is - SetLightVisible("", bool), SetLampLit for lamps.
Haha, no problem! After reconsidering, it was probably going to be SetLightVisible or SetLampLit. Either way, I'm glad to hear you got it working! Good luck with your CS!
OMG! Thank... YOU! Ive been trying to get an enemy I created for my CS to work for AGES, and this thread solved the problem, as the enemy has lights in it to mimic a glowing creature.