hi,
@gri
I think it is possible with "my.group"....
And I know its not. I checked that already.
my_troops.group = 1 and the enemy.group = 2
c_scan returns both types of units. I use it with and without IGNORE_PUSH.
So the group value seems to get ignored on c_scan.
There is no need for IGNORE_xxxxx. You can simply use a "identification skill". Every group get its own ID. If the scanned ID is different, the enemy was scanned. If its the same (my.ID == you.ID) the own team members are detectet.
That doesnt work. c_scan delievers the closest entity.
What if an friendly unit is next? I had to set the you pointer to this entity and call c_scan with ignore_you again ?
No.
The c_scan function should filter out certain groups of units like IGNORE_FLAG2 | IGNORE_FLAG5.
regards,
gri