how to make AI shoot other AI from other missions?

how to make AI shoot other AI from other missions?

« posted: Oct 18, 2020, 09:42 PM »
It is possible to configure the AI of the missions to be enemies of each other?

Example: ground missions shoot the hostile helicopter mission

Best regards

Re: how to make AI shoot other AI from other missions?

« Reply #1 posted: Jul 22, 2021, 11:48 AM »
Do you still need assistance in this regard? if so, you will need to change the side of the ai group from civilian to a random one for each mission.


Try this.. open up mission_HostileHelicopter.sqf and goto line 33, it should look like this
Code: [Select]
private ["_type", "_position", "_direction", "_variant", "_vehicle", "_soldier","_RANDOMGROUP"];// added _randomgroupadd the _randomgroup at the end
scroll down to line 97/98 to where it says _aigroup creategroup..... then replace it with this...
Code: [Select]
_RANDOMGROUP = selectRandom [WEST, EAST, CIVILIAN, RESISTANCE];//selects random side
_aiGroup = createGroup _RANDOMGROUP;

this will make it chose a random side for every hostile helicopter there is. If you want them to attack on sight, look for "setCombatMode" and change it from 'White' to anything on this page
https://community.bistudio.com/wiki/setCombatMode
same applies for further down in the sqf where it mentions about behavior on waypoints.

have fun.