Here is my code for setting up friendlys and enemies:
function AI_setup_friendly(number)
AvD#=200
AtD#=500
DD#=200
S#=5.0
TS#=80
R#=600
VArc#=90
FArc#=1
duck=1
strafe=0
search=1
AI Add Friendly number, 1
AI Set Entity Can Duck number, duck
AI Set Entity Can Strafe number, strafe
AI Set Entity Can Search number, search
AI Set Entity Defend Distance number, DD#
AI Set Entity View Range number, R#
AI Set Entity View Arc number, VArc#,VArc#
AI Set Entity Fire Arc number, FArc#
AI Set Entity Stance number, 1
AI Set Entity Speed number, S#
AI Set Entity Turn Speed number, TS#
AI Set Entity Avoid Distance number, AvD#
AI Set Entity Attack Distance number, AtD#
`Hard coded
AI Set Entity Can Hear number, 1
AI Set Entity Can Roam number, 0
endfunction
function AI_setup_enemy(number)
AvD#=200
AtD#=500
DD#=100
S#=6.0
TS#=100
R#=600
VArc#=180
FArc#=60
duck=0
strafe=0
search=1
AI Add Enemy number, 1
AI Set Entity Can Duck number, duck
AI Set Entity Can Strafe number, strafe
AI Set Entity Can Search number, search
AI Set Entity Defend Distance number, DD#
AI Set Entity View Range number, R#
AI Set Entity View Arc number, VArc#,VArc#
AI Set Entity Fire Arc number, FArc#
AI Set Entity Stance number, 1
AI Set Entity Speed number, S#
AI Set Entity Turn Speed number, TS#
AI Set Entity Avoid Distance number, AvD#
AI Set Entity Attack Distance number, AtD#
`Hard coded
AI Set Entity Can Hear number, 1
AI Set Entity Can Roam number, 0
endfunction
When they get within range of each other they just ignore each other completely. I was looking forward to seeing a nice big battle but no...
I'm not using containers, entity stance is set to 1 (aggressive). I am using
AI Entity Defend Area object, wx#,wz#,400
...to tell my friendlies to get close to my enemies.
They are well within range of each other...
Help?
PS. I'll just set up some test code so you can see this in action (or not rather)