- Messages
- 139
- Country

Hi everyone
I've created 2 light boxes of LIGHT_BEACON_ names, set the timer to 0F0F0h, and arranged the code so that they flash alternately. This does work in FS, but however too slowly for UK wigwags. I have changed the timer in both directions (higher and lower numbers), and in both cases, it seems to alter the time of the 1st light box, but not the 2nd. Instead, it makes the 2nd longer to make up for the shorter time of the 1st, so I end up with one short light, then a really long one! The code I've now got is as follows:
So from that I've increased 0F0F0h to say 0FF00h, and all it does it make the 1st one so short you miss it, then the second really long. If I then include the same code above the 2nd light, the 1st one comes on, but the second then doesn't show.
Hopefully that all makes sense, and if anyone has the solution to what I'm doing wrong, it would be greatly appreciated!
(Many thanks to Drew at dbsimulation+design for the original flashing light tutorial)
Thanks
Will
I've created 2 light boxes of LIGHT_BEACON_ names, set the timer to 0F0F0h, and arranged the code so that they flash alternately. This does work in FS, but however too slowly for UK wigwags. I have changed the timer in both directions (higher and lower numbers), and in both cases, it seems to alter the time of the 1st light box, but not the 2nd. Instead, it makes the 2nd longer to make up for the shorter time of the 1st, so I end up with one short light, then a really long one! The code I've now got is as follows:
Code:
ww_MasterScale_2 label BGLCODE
IFMSK nolgt_1, 0282h, 0F0F0h
BGL_LIGHT LIGHT_BEACON, -0.325, 0.300, -0.112, 20, 0.60, 0.40, 0FFF8D548h, 0.000000, 0.000000, 1.000000 ; source poly num = 1013
BGL_JUMP_32 nolgt_2
nolgt_1 label BGLCODE
BGL_LIGHT LIGHT_BEACON, 0.351, 0.300, -0.112, 20, 0.60, 0.40, 0FFF8D548h, 0.000000, 0.000000, 1.000000 ; source poly num = 1014
nolgt_2 label BGLCODE
BGL_RETURN
So from that I've increased 0F0F0h to say 0FF00h, and all it does it make the 1st one so short you miss it, then the second really long. If I then include the same code above the 2nd light, the 1st one comes on, but the second then doesn't show.
Hopefully that all makes sense, and if anyone has the solution to what I'm doing wrong, it would be greatly appreciated!
(Many thanks to Drew at dbsimulation+design for the original flashing light tutorial)
Thanks
Will
