Hi there, ppl
For the next version of my SpawnManager (3) i'm trying to come up with a simple & fast system for reporting enemy contacts to a central SpawnManager-AI. And it has to be multiplayer-compatible. Event handlers are still a problem in MP, no ? (or did i miss something ?)
I want to base this on group behaviour, like: if a group's behaviour changes to 'COMBAT' there must've be an enemy sighted.
Of course, this also means i can't issue a direct
setbehaviour "combat" - command to my groups, but that's ok.
So basically i permanently loop thru all my patrolgroups if a group has switched to "COMBAT". Then i use a big trigger that covers the whole map to get a list of all enemy units and by checking against "knows about > 2" find the enemy unit that the patrolgroup-leader sighted.
After that i want to get what type the enemy unit is (Officer, AT, AA etc) or what vehicle he drives, and then report the info to the SpawnManager3 AI. Based on the reported threat-type specific groups are spawned that will have the best chance to fight off the threat (Choppers vs. Tanks, lots of Infantry vs. Commandos/Snipers, AA-Infantry vs. Choppers etc etc).
Basically SpawnManager3 will be a global AI that uses many SpawnManager2-scripts as 'portals' to fight specific threats.
Comments ? Helpful script pieces anyone ? Problems you see for use in MP ?
I appreciate any info you may throw in here. Thx in advance, ppl.