DanM, on Sep 18 2010, 11:05 AM, said:
i just want that effect i get when i flag models with an extra of 4911 that i use to make broken lights look like they are broken by making the glowmap turn off and on i was wondering if that could be extended to work with the se150, so when the light is on so is the glowmap
I understand now. The light switching effect needs to be able to change the picnum of a linked model so it can turn the glowmap on/off as the light turns on/off. This should work with both SE49 and SE50. I'll make it work in a simple case where you can turn the light on and off (like a lamp). I'm not sure about making it work in combination with a flickering light and more complicated stuff, though.
EDIT: I have CONs for an UNTESTED attempt at the new feature attached. Here is how it is supposed to work. If you have an SE49 or SE50 that is set up to be switched ON/OFF (that is you have the corresponding SE150 in the sector), then you can also place a sprite tagged with Extra 4911 in that sector and it will be the linked model. As with the flickering effect, the Hitag on the Extra 4911 model will be the alternate glowmap picnum that gets switched to when the light is activated. For this effect, you can have the light start either off or on. It will be off by default, but if you want it to start as on, give the 4911 model a lotag of 1.
There are some limitations. You can only have one 4911 tagged model per sector You could have more than one light linked to the model (simply by placing more than one SE49 or SE50 in that sector along with the SE150, but keep in mind that
each SE that switches is going to flip the model. So if you have two lights that get switched off, each will flip the model and it will be like the model didn't flip. In other words, it should work if there is an odd number of lights in the sector.
EDIT2: Should now be fixed so that it doesn't break the flickering SE49 or other effects.