Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- span class="re5"> params [
- ['_grpType',configNull,[configFile]],
- ['_grpCost',0,[0]],
- ['_grpSide',resistance,[civilian]]
- ];
- if (_grpSide == civilian) exitWith {hint "You cannot recruit civilians! That's a war crime, you absolute cunt";};
- private _p_balance = [WEST_balance , EAST_balance, GUER_balance] select ([west, east, resistance] find _grpSide);
- private _g_spawn = ["BLU_FLAG" , "RED_FLAG", "GRN_FLAG"] select ([west, east, resistance] find _grpSide);
- if (_p_balance >= _grpCost) then {
- _spawnGrp = [(getMarkerPos _g_spawn), _grpSide, _grpType] Call BIS_fnc_spawnGroup;
- [_grpCost,_grpSide,false] call BTH_fnc_HandleBalance;
- {
- [_x] call BTH_fnc_UnitSetup;
- } forEach units _spawnGrp;
- } else {
- hint "You cannot afford that group!"
- };
Add Comment
Please, Sign In to add comment