Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- params [
- ['_amount', 0, [0]],
- ['_object', "CargoNet_01_box_F", [""]],
- ['_objPos', [0,0,0], [[0,0,0]]],
- ['_rndDir', false, [true]]
- ];
- private _resObj = _object createVehicle _objPos;
- _resObj setPos _objPos;
- if (_rndDir) then {
- private _newDir = random 360;
- _resObj setDir _newDir;
- };
- {
- _resObj addAction [
- BTH_RTS_str_CollectResources,
- {
- deleteVehicle (_this select 0);
- sleep 0.05;
- private _teamSide = ([west, east, resistance] find side (_this select 1));
- private _teamBank = ["BTH_RTS_TEAM_BLU_bank", "BTH_RTS_TEAM_RED_bank", "BTH_RTS_TEAM_GRN_bank"] select _teamSide;
- [_teamBank, _amount, true] call BTH_fnc_ManageBank_RTS;
- },
- _amount, 10, true, true, "", "", 8
- ];
- } forEach allPlayers;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement