Hello again!
This time I've got some trouble with the above script. Namely a bug in the sound detection part of the game.
I get an error at ? ("_unit knowsabout _x > 0.10" count _enemy > 0) : goto "spotted" where it complains at that the data type is a Group and not an Object.
I have manually initialized arrays of groups in the init.sqs file as follows, and wonders if that could be a problem...
;; setup ai.sqs
aieast = [cityPat1,roadPat1,roadPat2];
aiwest = [pgroup];
[cityPat1,[],[],[],[roadPat2],flaring,tactical] exec "ai.sqs";
[roadPat1,[],[],[],[],flaring,tactical] exec "ai.sqs";
[roadPat2,[],[],[],[roadPat1],flaring,tactical] exec "ai.sqs";
[pgroup,[],[],[],[],flaring,tactical] exec "ai.sqs";