Frictional Games Forum (read-only)

Full Version: Making a trigger to turn lights off?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Have been looking on the wiki for a function to turn the lights of when walking over a trigger, have only found this one SetLampLit, but i have no success to make it work.

void SetLampLit(string& asName, bool abLit, bool abEffects);

Or do i use something else?
It would help if you posted your script.
Code:
void SetLampLit(string& asName, bool abLit, bool abEffects);

asName = name of the lamp entity
abLit = boolean (true / false) if the lamp should be lit or not
abEffects = another boolean if the engine should use effects to light the lamp (basically, this means you will see the flame appear and the shine, false would just switch it into the lit-state, use it when the player can see the lamp)
It only turns off lamps, not lights (for me at least). I tried SetEntityActive too, but that wasn't working either.
For lights use SetLightVisible.
ahhh. thanks ^^