laat_lift_4.sqf 753 B

123456789101112131415161718192021222324252627282930
  1. #include "../../config_macros.hpp"
  2. params[
  3. ["_this",objNull,[player]]
  4. ];
  5. if(isNull _this) exitWith {
  6. };
  7. _this addAction ["<t color='#f4e541'>Engage Magnetic Clamps</t>",{
  8. params["_vic"];
  9. _objects= nearestObjects [player, ["Car","Tank","Air","Ship"], 20];
  10. _vex= _objects select 1;
  11. _vex attachTo [_vic, [0,-2,-2.5]];
  12. removeAllActions _vic;
  13. _vic addAction ["<t color='#f44167'>Disengage Magnetic Clamps</t>", {
  14. params["_vic"];
  15. _objects= nearestObjects [player, ["Car","Tank","Air","Ship"], 20];
  16. removeAllActions _vic;
  17. _vex= _objects select 1;
  18. detach _vex;
  19. _this execVM "RD501_Main\functions\Vehicle_Lift\laat_lift_4.sqf";
  20. },[1],0,true,true,""," driver _target == _this "];
  21. },[1],0,true,true,""," driver _target == _this "];