Removing a light effect when object is killed (attached odf)
Posted: Thu Oct 07, 2010 12:02 am
Here's the next big roadblock in the creation of my Death Star map.
I don't have my resources with me so I shall do my best to describe the setup of what I'm trying to accomplish. My map contains a double-fireroom of sorts. The model of the death star fire room has a mirrored copy of itself placed opposing it, and there's a shallow large tube between the two, which formerly was where the death star superlaser cannon would go. Now, I have a large energy field set up there (the engine light used on the rebel transports, recolored) with a corresponding death region present.
There are walkways on each side of the tube connecting the two fire rooms, which of course have dynamic planning arcs which turn off when the death region and energy field are on. The energy field is an attached odf, embedded into the odf of the 2 destructable panels (1 object) which toggle the death region, planning, and barriers. Unfortunately, when the object is destroyed, the attached light stays, even when I have tried it with
a) no destroyed geometry
and
b) the seemingly worthless odf command 'removeunitwhendestroyed = "1"' or whatever it is (not right but I'm going from memory here) btw what do the number values on that command indicate? I assume 1 = true as a boolean variable, while 0 = false?
...and what exactly is a light odf considered to be (and therefore what lua commands affect it)? is it an object? an effect? other?
I don't have my resources with me so I shall do my best to describe the setup of what I'm trying to accomplish. My map contains a double-fireroom of sorts. The model of the death star fire room has a mirrored copy of itself placed opposing it, and there's a shallow large tube between the two, which formerly was where the death star superlaser cannon would go. Now, I have a large energy field set up there (the engine light used on the rebel transports, recolored) with a corresponding death region present.
There are walkways on each side of the tube connecting the two fire rooms, which of course have dynamic planning arcs which turn off when the death region and energy field are on. The energy field is an attached odf, embedded into the odf of the 2 destructable panels (1 object) which toggle the death region, planning, and barriers. Unfortunately, when the object is destroyed, the attached light stays, even when I have tried it with
a) no destroyed geometry
and
b) the seemingly worthless odf command 'removeunitwhendestroyed = "1"' or whatever it is (not right but I'm going from memory here) btw what do the number values on that command indicate? I assume 1 = true as a boolean variable, while 0 = false?
...and what exactly is a light odf considered to be (and therefore what lua commands affect it)? is it an object? an effect? other?