Advertisement
BobTheHunted

Untitled

Sep 21st, 2017
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.74 KB | None | 0 0
  1.  
  2. params [
  3.     ['_amount', 0, [0]],
  4.     ['_object', "CargoNet_01_box_F", [""]],
  5.     ['_objPos', [0,0,0], [[0,0,0]]],
  6.     ['_rndDir', false, [true]]
  7. ];
  8.  
  9. private _resObj = _object createVehicle _objPos;
  10.  
  11. _resObj setPos _objPos;
  12.  
  13. if (_rndDir) then {
  14.     private _newDir = random 360;
  15.     _resObj setDir _newDir;
  16. };
  17.  
  18. {
  19.     _resObj addAction [
  20.         BTH_RTS_str_CollectResources,
  21.         {
  22.             deleteVehicle (_this select 0);
  23.             sleep 0.05;
  24.             private _teamSide = ([west, east, resistance] find side (_this select 1));
  25.             private _teamBank = ["BTH_RTS_TEAM_BLU_bank", "BTH_RTS_TEAM_RED_bank", "BTH_RTS_TEAM_GRN_bank"] select _teamSide;
  26.             [_teamBank, _amount, true] call BTH_fnc_ManageBank_RTS;
  27.         },
  28.         _amount, 10, true, true, "", "", 8
  29.     ];
  30. } forEach allPlayers;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement