Epoch/Sources/epoch_code/compile/EPOCH_unitSpawnIncrease.sqf
vbawol fa2185a27d 0.3.9.0534
max out zombie count on spawn chance
allow variable increase to antagonist array
2016-06-18 12:57:53 -05:00

21 lines
639 B
Plaintext

/*
Author: Aaron Clark - EpochMod.com
Contributors:
Description:
Antagonist spawn chance increase function
Licence:
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/EPOCH_unitSpawnIncrease.sqf
*/
private ["_index"];
params ["_spawnName", ["_increase",1]];
_index = EPOCH_spawnIndex find _spawnName;
if (_index != -1) then{
EPOCH_playerSpawnArray set[_index, ((EPOCH_playerSpawnArray select _index) + _increase) min (EPOCH_spawnLimits select _index)];
};