Vehicle_Lift.sqf 840 B

12345678910111213141516171819202122
  1. params["_this","_user"];
  2. _this addAction ["<t color='#f4e541'>Engage Magnetic Clamps</t>",{
  3. params["_vic"];
  4. _vic allowdamage false;
  5. _objects= nearestObjects [player, ["Car","Tank","Air","Ship"], 20];
  6. _vex= _objects select 1;
  7. _vex allowdamage false;
  8. _vex attachTo [_vic, [0,-2,-2.5]];
  9. removeAllActions _vic;
  10. _vic addAction ["<t color='#f44167'>Disengage Magnetic Clamps</t>", {
  11. params["_vic"];
  12. _objects= nearestObjects [player, ["Car","Tank","Air","Ship"], 20];
  13. _vex= _objects select 1;
  14. detach _vex;
  15. removeAllActions _vic;
  16. sleep 2;
  17. _vex allowdamage true;
  18. _vic allowdamage true;
  19. _this execVM "501st_Republic_Asset_Modification\scripts\Vehicle_Lift.sqf";
  20. _this execVM "501st_Republic_Asset_Modification\scripts\ATTE_Lift.sqf";
  21. },[1],0,true,true,"User14"," driver _target == _this "];
  22. },[1],0,true,true,"User15"," driver _target == _this "];