Hi,
In my WWII game, I have about 10 or more AI players on each team, some my allies, some my enemies. I need each actor to be able to detect it's enemies and attack them. I have been using a "radar-style" c_trace, one that constantly spins around so every 5 seconds it turns 360 degrees and scans it's surroundings for enemies. Now, this works fine, but I need the whole process to be faster, but I can't make the rotating c_trace any faster or it skip over enemies. Should I use c_scan instead of a rotating c_trace, and if I do, how can I make c_scan return YOU as the closest detected object with the enemy property, not just the closest object(which might be another ally)? Also, c_scan will go through walls, and the actor will be wasting his time trying to shoot at an enemy which he can't hit.


Murphey's Law:
<< if anything can go wrong, it will >>

(Murphey was an optimist).