hi,

I made 2 enemy groups.
Their entities scanning with c_scan for the next one of the other group to attack.

note: .....
(besides I store all fighting entities in an array, so the c_scan function runs only once a time for performance reasons)

.... lets go ahead


C_SCAN delivers the entity standing next to the searcher even if it is a friendly entity.

#1:
When I set ENABLE_SCAN only for one group then they got found by the others but cannot self find the others.

#2:
IGNORE_YOU can only be set to 1 unit, what if 2 or more friends staying between the searcher and the next enemy ?

Now how to find only the enemy units with c_scan and ifnore all friendly ones?




greetings,
maik


"Make a great game or kill it early" (Bruce Shelley, Ensemble Studios)