- Messages
- 374
- Country
Hi guys,
calvert at least! I've been able to model my 3d approach lighting system and I used the svisibility module to tweak my light in order to let them appear in low visibility conditions. I've also tweaked the asm in order to get the ligths on during night, dusk and dawn. This is the code:
The problem is that the condition which write on USRVR5 doesn't work during day, I mean is turn on the lights only at night/dusk.
What I would get is turn on the lightswith the following conditions:
Dawn, dusk, night AND when the visibility is low (means use the IFMSK CHECK_TOD1, 031Ah, 01h condition).
What's wrong with my code?
calvert at least! I've been able to model my 3d approach lighting system and I used the svisibility module to tweak my light in order to let them appear in low visibility conditions. I've also tweaked the asm in order to get the ligths on during night, dusk and dawn. This is the code:
Code:
IFMSK CHECK_TOD1, 031Ah, 01h
JUMP ShowLightsFila1
CHECK_TOD1:
IFIN1 NoLightFila1, tod, 2, 4
ShowLightsFila1:
SEPARATION_PLANE PrimaFila, 0, 0, 32768, -29049225
IFIN1 PrimaFilaLight1, 033bh, 0, 1000 ; 0-1 km
BGL_LIGHT LIGHT_NAV, -0.010, 3.488, 893.659, 20, 0.60, 0.40, 0FFFFFFFFh, 0.000000, 0.000000, 1.000000 ; source poly num = 10
BGL_JUMP_32 PrimaFila
PrimaFilaLight1 label BGLCODE
IFIN1 PrimaFilaLight2, 033bh, 1000, 3000 ; 1-3 km
BGL_LIGHT LIGHT_NAV, -0.010, 3.488, 893.659, 20, 0.60, 0.40, 0FF999999h, 0.000000, 0.000000, 1.000000 ; source poly num = 10
BGL_JUMP_32 PrimaFila
PrimaFilaLight2 label BGLCODE
BGL_LIGHT LIGHT_NAV, -0.010, 3.488, 893.659, 20, 0.60, 0.40, 0FF555555h, 0.000000, 0.000000, 1.000000 ; source poly num = 10
PrimaFila label word
NoLightFila1: ;label word
The problem is that the condition which write on USRVR5 doesn't work during day, I mean is turn on the lights only at night/dusk.
What I would get is turn on the lightswith the following conditions:
Dawn, dusk, night AND when the visibility is low (means use the IFMSK CHECK_TOD1, 031Ah, 01h condition).
What's wrong with my code?