Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Possible to delete light entities?
#1
I want to delete all the lights on the level "Five" for zombies. Is it possible to delete lights? Please explain. Thanks.
Reply

#2
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.
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#3
(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.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#4
Could also be some other type of light. Haven't mapped in a while but it still can be removed.
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.