ItsMods

Full Version: Possible to delete light entities?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to delete all the lights on the level "Five" for zombies. Is it possible to delete lights? Please explain. Thanks.
Code:
delete_lights()
{
    lights = getEntArray("name of the targetname", "targetname");
    for( i = 0; i <= lights.size; i++ )
    {
        lights[i] hide();
    }
}
level thread delete_lights();
in init, find out what the targetnames are for the lights and replace it above and you're good to go.
(05-26-2014, 02:11)DidUknowiPwn Wrote: [ -> ]
Code:
delete_lights()
{
    lights = getEntArray("name of the targetname", "targetname");
    for( i = 0; i <= lights.size; i++ )
    {
        lights[i] hide();
    }
}
level thread delete_lights();
in init, find out what the targetnames are for the lights and replace it above and you're good to go.

Some "lights" are "built-in" bsp/d3dbsp.
Could also be some other type of light. Haven't mapped in a while but it still can be removed.