mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
fix ai spawning
This commit is contained in:
parent
675348b160
commit
0b71db3917
@ -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)];
|
||||
};
|
||||
|
@ -179,6 +179,7 @@ if !(_playerSpawnArray isEqualTypeParams _spawnIndex) then{
|
||||
_playerSpawnArray = [];
|
||||
{ _playerSpawnArray pushBack 0 } forEach _spawnIndex;
|
||||
};
|
||||
missionNamespace setVariable [_playerSpawnArrayKey, _playerSpawnArray];
|
||||
|
||||
// find radio
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user