hi,

I have the following scenario.

My troops and an enemy group of cruel soldiers staying at the same place.

With an "c_scan" command each of my men trys to find its closest enemy.
So I could set the FLAG2 of the enemies and c_scan them with the SCAN_FLAG2 parameter to detect the enemys only.

The enemies tries to c_scan my men too.
Because my troops havent set the FLAG2, the enemies calling c_scan with IGNORE_FLAG2 to find only my units.

Fine, this works with 2 parties.
But what if there is a third or fourth group with diffrent relations to the other?

Here it would be helpfull if we could use all the flags and not only flag2.
Or what would you suggest to solve this ?

Hint:
I use a "timer" like functionality to spreed the massive c_scan calls over several engine frames to keep the framerate.
Its not needed that all warriors scanning their enviroment at the same frame and on each frame.


regards,
gri


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