Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. private ["_veh","_action"];
  2.  
  3. if(count _this == 2) then
  4. {
  5.     _veh = _this select 0;
  6.     _action = _this select 1;
  7. } else
  8. {
  9.     _veh = _this select 3 select 0;
  10.     _action = _this select 2;
  11. };
  12.  
  13. _target = _veh getVariable "cargo";
  14.  
  15. if (isNull(_target)) exitWith {};
  16. detach _target;
  17. _veh setVariable["active", 0];
  18. _veh setVariable["cargo", objNull];
  19. _veh removeAction _action;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement