hi,

I dont think that this works like I needs.

What if 2 or more "friendly" units standing between the Searcher and the enemy ?

c_scan delivers the "friendly" as next closest entity here.

I can set the "you" pointer to this entity and c_scan(...with IGNORE_YOU) again but there is another friendly one I have to ignore.
How to do that ?

As an workaround I could do the following:

1. If a unit of group-A want "c_scanning" I have to go through the array of group-A and reset(ENABLE_SCAN) for
each unit.

2. Now the unit can scan the area without getting a friendly one.

3. After that set(ENABLE_SCAN) is to do for the whole group again to gettn detected by the other group.

This is to make for the other group too if a member of them scan the area.

Yes I know the logic could be packed in a nice, litte function, but I cant believe that this is the right way.
There must be an easier way for that.


,gri


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