Quote: "Flashing light on squad car"
Try to think in Algorithms rather than code.
You want an extra light to sit on top of your car and go wherever the car and presumably the fake light goes.
If my cop light is object 4 and my new light is light 2
e.g.
position light 2,object4x,object4y,object4z
Placed outside the main loop or gosub or function this event would only happen once and the car would leave the light behind.
A simple solution is to place the instruction inside the do loop and every time the program loops it will place your light in the right spot. As your program will loop at least 30 fps the light will appear constant.
As for flashing - can you
hide light, color light black, red, blue or rotate etc
Think in terms of what effect you are trying to achieve rather than code.
Once you work it out the actual code is minimal.
Regards
mpc