Interesting concept Leon... though I'm afraid there may be a few flaws at the moment for that to work correctly. It, in theory, should work perfectly, however, I am not sure if I have correctly allowed the movement of dynamic lights.
You can test this by simply providing a dynamic light in your level with some simple movement code... perhaps have it move back and forth for a little bit... actually, since I am unable to test this myself, allow me to provide you (and anyone wanting to help out with this) with a test script.
Make the light move forward and backward by 50 units (If the light is centered in a segment then it should move from the edge of the segment to the other edge):
:state=0:lighton,dimvar=LightS,setvar=LightS $EPZ,dimvar=LightM,dimvar=CalcVar,state=1
:state=1:addvar=LightM 0.1
:state=1,varequal=LightM 50:state=2
:state=2:subvar=LightM 0.1
:state=2,varequal=LightM -50:state=1
;Reposition Light based on LightM and LightS
:ALWAYS:setvar=CalcVar %LightS,addvar=CalcVar %LightM,entityposz=%CalcVar
Explanation:
- Dim variables for the lights
Starting position and the Light's
Movement, as well as a calculation variable to temporarily hold (LightS+LightM) and position the entity at that location.
- Start the "LightS" variable at the entity's starting Z position ($EPZ)
- "LightM" will transition between -50 and +50
I don't have the manual with me and, to be honest, I can't exactly remember if the commands are correct... so if you could double check them in the readme before using it and make sure that the commands are right, that'd be helpful.
Lemme know how it goes.
The one and only,
Those who live in the past, are destined to insanity. Those who live only for the future, will be slaves to their ambitions.
Those who live in the moment... only they, are truly happy.