mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
debug spawn units
This commit is contained in:
parent
d12c6f83ce
commit
a5894bca15
@ -6,14 +6,16 @@ if (random _antagonistRndChance < _spawnChance) then {
|
||||
// selectRandomWeighted arma 1.76 or higher
|
||||
(selectRandomWeighted _antagonistChances) call EPOCH_unitSpawnIncrease;
|
||||
};
|
||||
// diag_log format["DEBUG: _spawnChance %1",_spawnChance];
|
||||
|
||||
|
||||
_spawnUnits = [];
|
||||
{
|
||||
if (_x > 0) then{
|
||||
_spawnUnits pushBack(EPOCH_spawnIndex select _forEachIndex);
|
||||
};
|
||||
} forEach _playerSpawnArray;
|
||||
} forEach (missionNamespace getVariable [_playerSpawnArrayKey, _playerSpawnArrayDefault]);
|
||||
|
||||
diag_log format["DEBUG: _spawnUnits %1",_spawnUnits];
|
||||
|
||||
// test spawning one antagonist every 10 minutes select one unit at random to spawn
|
||||
if !(_spawnUnits isEqualTo[]) then{
|
||||
|
Loading…
Reference in New Issue
Block a user