I'm having trouble getting a good LOS engine to work in a 360 shooter.

I want pretty much exactly what Orphanage was going for, however I had no success using Move Safely 2 Object. the reason being that my detectors are using the whole Add Cos(Angle "detector)*180 thing to get it to move really fast on the condition "always".

I did not understand the tutorial for the Move Safely 2 Object very well, and so what I did is every 10/100 seconds create the detector, then add object to the protected list.

Of course, the tutorial says that before any "set position
actions are made, you have to prepare the safety, storing objects' old coordinates. I guess that means that any time an object moves, right?

So always
- prepare safety

But of course, to test for collisions you have to commence safety while the object is moving, which is, of course always.

So always

- prepare safety
- commence safety

then

+ on safety
+ fixed value of detector = getfixed(movesafely2object)
+detector is overlapping rock
- destroy detector

This is not very efficient obviously, and I'm getting a slew of bugs, such as runtime crashes. But even with messing around with which and where the actions and conditons should go, I'm not getting jack.










Thats problem #1.

Problem #2 is, I need the detector to fan out as it travels, like a cone shape. But unfortunately even if half of the detector collides with an obstacle, the whole thing is destroyed. I tried makeing multiple detectors, spreading an ID value, then for each value giving each a different angle. but the way its set it up is I can only assign the angle when the detector is created, not on an "when Id = 0" type condition. Otherwise, the detectors will just spawn at 0,0 of the frame, not relative to the player.

I definately need some suggestions.
thanks