Editing mission file

Editing mission file

« posted: Aug 03, 2022, 03:14 AM »
Hey guys could I get a hand.
I'm trying to edit the mission MBT for instance and I want to change the ai that spawn in it.
I notice that this line appears.
_nbUnits = if (missionDifficultyHard) then { AI_GROUP_LARGE } else { AI_GROUP_MEDIUM };
And don't know what file it is pulling from the create the ai.

Re: Editing mission file

« Reply #1 posted: Aug 03, 2022, 09:26 AM »
Each folder for the missions has the _defines, for example moneyMissionDefines.sqf.
There you find:
Code: [Select]
#define AI_GROUP_SMALL 5
#define AI_GROUP_MEDIUM 11
#define AI_GROUP_LARGE 14

This is only the amount of enemies. If u'd like to edit the appereance of the enemies, you have to edit this:

Code: [Select]
_aiGroup = createGroup CIVILIAN;
[_aiGroup, _missionPos, _nbUnits] call createCustomGroup;

Look into server\missions\factoryMethods\createUnits.
When creating a new kind of group, you also have to add the new group in server\functions\serverCompile.sqf