mirror of
https://github.com/rambo/arma3_missions.git
synced 2024-08-30 16:52:13 +00:00
dfa0e68e7b
* mija changes (#7) mijas changes * separate players into their own groups * fix some leftover typos and sort actions by priority Co-authored-by: mija <i.see.living.people@gmail.com>
39 lines
1.9 KiB
Plaintext
39 lines
1.9 KiB
Plaintext
//diag_log format["createEnemySquad called, _this: %1", _this];
|
|
private _centrePos = _this select 0;
|
|
private _includeAA = _this select 1;
|
|
|
|
// Some variance
|
|
private _centreCoords = getPos _centrePos;
|
|
_centreCoords set [0, ((_centreCoords select 0) + enemyDistace + (floor random 100))];
|
|
_centreCoords set [1, ((_centreCoords select 1) + enemyDistace + (floor random 100))];
|
|
|
|
private _enemyPosition = _centreCoords findEmptyPosition [0,50];
|
|
|
|
// TODO: use some preconfigured fireteam setup
|
|
private _groupEnemy = createGroup east;
|
|
"O_Soldier_F" createUnit [_enemyPosition, _groupEnemy,"",0.6, "CORPORAL"];
|
|
"O_Soldier_F" createUnit [_enemyPosition, _groupEnemy,"",0.1, "PRIVATE"];
|
|
"O_soldier_M_F" createUnit [_enemyPosition, _groupEnemy,"",0.3, "PRIVATE"];
|
|
"O_soldier_AR_F" createUnit [_enemyPosition, _groupEnemy,"",0.3, "PRIVATE"];
|
|
"O_soldier_M_F" createUnit [_enemyPosition, _groupEnemy,"",0.3, "PRIVATE"];
|
|
"O_soldier_AR_F" createUnit [_enemyPosition, _groupEnemy,"",0.3, "PRIVATE"];
|
|
"O_soldier_M_F" createUnit [_enemyPosition, _groupEnemy,"",0.3, "PRIVATE"];
|
|
"O_soldier_AR_F" createUnit [_enemyPosition, _groupEnemy,"",0.3, "PRIVATE"];
|
|
"O_soldier_M_F" createUnit [_enemyPosition, _groupEnemy,"",0.3, "PRIVATE"];
|
|
"O_soldier_AR_F" createUnit [_enemyPosition, _groupEnemy,"",0.3, "PRIVATE"];
|
|
"O_soldier_M_F" createUnit [_enemyPosition, _groupEnemy,"",0.3, "PRIVATE"];
|
|
"O_soldier_AR_F" createUnit [_enemyPosition, _groupEnemy,"",0.3, "PRIVATE"];
|
|
"O_soldier_M_F" createUnit [_enemyPosition, _groupEnemy,"",0.3, "PRIVATE"];
|
|
"O_soldier_AR_F" createUnit [_enemyPosition, _groupEnemy,"",0.3, "PRIVATE"];
|
|
"O_soldier_M_F" createUnit [_enemyPosition, _groupEnemy,"",0.3, "PRIVATE"];
|
|
"O_soldier_AR_F" createUnit [_enemyPosition, _groupEnemy,"",0.3, "PRIVATE"];
|
|
|
|
if (_includeAA) then
|
|
{
|
|
"O_soldier_AA_F" createUnit [_enemyPosition, _groupEnemy,"",0.75, "CORPORAL"];
|
|
};
|
|
|
|
//diag_log format["createEnemySquad %1 positioned to %2", _groupEnemy, _enemyPosition];
|
|
|
|
[_groupEnemy]
|