Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _veh = cursorTarget;
- _cargo = getItemCargo _veh;
- _itemCount = count (_cargo select 0);
- clearItemCargo _veh;
- for "_i" from 0 to (_itemCount - 1) step 1 do
- {
- _arrayItem = (_cargo select 0) select _i;
- _arrayItemCount = (_cargo select 1) select _i;
- switch (true) do
- {
- case ( (_arrayItem == "ToolKit") && (_arrayItemCount >= 1) ): // Add Repair Script Here
- {
- _veh addItemCargo ["ToolKit",_arrayItemCount - 1];
- };
- case ( (_arrayItem != "ToolKit") ):
- {
- _veh addItemCargo [_arrayItem,_arrayItemCount];
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement