Triggered light question
Hi Alliedmodders!
What if i delete light entity what has target name and what can be turned on/off, can i recreate that light entity what turns that light source on/off? What i wish to do is remove all entity lights to gave more entity slots and play with one light to turn on/off light sources. I'll be running maps what have so many light entities ( they are for costom entity, for example spot light what can be break ) Using dynamic light message is really bad idea because of the lag. Basically if we find the way how to have only one light entity then i can basically replace zp nightvision with no lag one. I know that the light source is build inside the bsp and can not be moved, it can be only turned on/off and thats fine too. Edit: To be honest, i already know that this what im trying to do is possible. Since the light entities are only in server side, server must be sending to client a index of some sort what lets engine know, which light source will be switched. What happens when light entity get triggered? Is there any source code in sdk what would lead me to right way? Thank you for your attention! |
Re: Triggered light question
Tried searching?. This thread may have some useful information in it.
Here's a brief summary of that thread. CLight entities that are not allocated a targetname will be removed on Spawn(). However the ones that are, will remain present so they can be toggled. The problem is, there is some piece of data in the map regarding spawnflags and targetname which we cannot access which is preventing us from individually switching off lights, even if you prevent them from being removed. If your reaching the maximum entity count, then your probably doing something not so good :nono: |
Re: Triggered light question
Ive already read that thread and also i searched it.
You misunderstand me... You told me right now what i already know. The thing is that i dont want to do anything with the light entities what doesnt have target name. I want to remove the ones who already have to target name and then somehow switch that removed light on/off without entity. Thats what im trying to do right now. |
Re: Triggered light question
Quote:
|
| All times are GMT -4. The time now is 12:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.