fix ai spawning

This commit is contained in:
vbawol 2017-09-30 10:14:43 -05:00
parent 675348b160
commit 0b71db3917
2 changed files with 1 additions and 2 deletions

View File

@ -20,8 +20,6 @@ _index = EPOCH_spawnIndex find _spawnName;
if (_index != -1) then{
_playerSpawnArrayKeyFinal = "EPOCH_playerSpawnArray";
if !(isNil "_playerSpawnArrayKey") then {_playerSpawnArrayKeyFinal = _playerSpawnArrayKey};
_playerSpawnArray = missionNamespace getVariable [_playerSpawnArrayKeyFinal,[]];
diag_log format["DEBUG: %1 %2",_playerSpawnArrayKeyFinal,_playerSpawnArray];
_playerSpawnArray set[_index, ((_playerSpawnArray select _index) + _increase) min (EPOCH_spawnLimits select _index)];
};

View File

@ -179,6 +179,7 @@ if !(_playerSpawnArray isEqualTypeParams _spawnIndex) then{
_playerSpawnArray = [];
{ _playerSpawnArray pushBack 0 } forEach _spawnIndex;
};
missionNamespace setVariable [_playerSpawnArrayKey, _playerSpawnArray];
// find radio
{