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.
What happens when you try to disable the light itself in the entity? Before you hide the entity, include this line:
PHP Code:
SetLampLit("MonsterName_LightName", false, false);
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:
SetLampLit("InfectedMonster_SpotLight_1", false, false);
(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:
SetLampLit("MonsterName_LightName", false, false);
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:
SetLampLit("InfectedMonster_SpotLight_1", false, false);

Thank you very much! It is working now! A little remark: the function to disable lights is - SetLightVisible("", bool), SetLampLit for lamps.

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.
Gonna have to lock this thread due to its age. Happy to hear your appreciation though!