I have an indoor level compiled with WED and I wanted to add a muzzle flash to my player( which just an empty sprite since its first person).
My code looks like this:
my.lightrange = 300;
wait( -0.1 );
my.lightrange = 0;
The code works on some of the level but in other parts it doesn't.
Its really strange, I will be walking along particular spots in the map and it just stops working. Its not like the light doesn't affect particular polygons - it simply does nothing when I cross certain boundaries in the level.
Any tips on how to debug this behavior?