I want to make a group AI that alerts the player whenever an enemy unit enter LOS / radar. I wondered if I could use the function
Code: Select all
virtual void EnemyEnterRadar(int enemy)=0;
in /trunk/rts/ExternalAI/IGlobalAI.h for that, even though it belongs to the global AI class and not to the group AI class.
If that isn't allowed, I'll probably have to use
Code: Select all
virtual int GetEnemyUnitsInRadarAndLos(int *units)=0;
in /trunk/rts/ExternalAI/IAICallback.h, but that'd be some more work (and I'm not too so how to go about it).
Some help and pointers would be appreciated, and flames about this group AI most defenitely not.