Laatc_Lift.sqf 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #include "../../config_macros.hpp"
  2. params[
  3. ["_this",objNull,[player]]
  4. ];
  5. if(isNull _this) exitWith {
  6. };
  7. _this addAction ["<t color='#72ff33'>Engage Right Magnetic Clamp</t>",{
  8. params["_vic"];
  9. _objects= nearestObjects [player, ["Car","Tank","Air","Ship","Object"], 20];
  10. _vex= _objects select 1;
  11. _vex attachTo [_vic, [7,-2,-2.5]];
  12. removeAllActions _vic;
  13. _vic addAction ["<t color='#72ff33'>Engage Left Magnetic Clamp</t>", {
  14. params["_vic"];
  15. _objects= nearestObjects [player, ["Car","Tank","Air","Ship","Object"], 20];
  16. _vex2= _objects select 1;
  17. _vex2 attachTo [_vic, [-7,-2,-2.5]];
  18. removeAllActions _vic;
  19. _vic addAction ["<t color='#72ff33'>Engage Internal Magnetic Clamps</t>", {
  20. params["_vic"];
  21. _objects= nearestObjects [player, ["Car","Tank","Air","Ship","Object"], 20];
  22. _vex2= _objects select 1;
  23. _vex2 attachTo [_vic, [0,-2,-2]];
  24. removeAllActions _vic;
  25. _vic addAction ["<t color='#f44167'>Disengage Magnetic Clamps</t>", {
  26. params["_vic"];
  27. _objects= nearestObjects [player, ["Car","Tank","Air","Ship","Object"], 20];
  28. removeAllActions _vic;
  29. _vex= _objects select 1;
  30. detach _vex;
  31. _vex2= _objects select 2;
  32. detach _vex2;
  33. _vex3= _objects select 3;
  34. detach _vex3;
  35. _this execVM "RD501_Main\functions\Vehicle_Lift\laatc_lift.sqf";
  36. },[1],0,true,true,""," driver _target == _this "];
  37. },[1],0,true,true,""," driver _target == _this "];
  38. },[1],0,true,true,""," driver _target == _this "];
  39. },[1],0,true,true,""," driver _target == _this "];
  40. _this addAction ["<t color='#33ffd3'>Engage Large Asset Clamps</t>",{
  41. params["_vic"];
  42. _objects= nearestObjects [player, ["Car","Tank","Air","Ship"], 20];
  43. _vex= _objects select 1;
  44. _vex attachTo [_vic, [0,-2,-7.5]];
  45. removeAllActions _vic;
  46. _vic addAction ["<t color='#f44167'>Disengage Magnetic Clamps</t>", {
  47. params["_vic"];
  48. _objects= nearestObjects [player, ["Car","Tank","Air","Ship"], 60];
  49. removeAllActions _vic;
  50. _vex= _objects select 1;
  51. detach _vex;
  52. _this execVM "RD501_Main\functions\Vehicle_Lift\laatc_lift.sqf";
  53. },[1],0,true,true,""," driver _target == _this "];
  54. },[1],0,true,true,""," driver _target == _this "];
  55. _this addAction ["<t color='#ff33f4'>Engage ATTE Clamps</t>",{
  56. params["_vic"];
  57. _objects= nearestObjects [player, ["RD501_turret_atte_stomper"], 20];
  58. _vex= _objects select 1;
  59. _vex attachTo [_vic, [0,-2,-7.5]];
  60. removeAllActions _vic;
  61. _vic addAction ["<t color='#f44167'>Disengage Magnetic Clamps</t>", {
  62. params["_vic"];
  63. _objects= nearestObjects [player, ["RD501_UGV_01_F"], 60];
  64. removeAllActions _vic;
  65. _vex= _objects select 1;
  66. detach _vex;
  67. _this execVM "RD501_Main\functions\Vehicle_Lift\laatc_lift.sqf";
  68. },[1],0,true,true,""," driver _target == _this "];
  69. },[1],0,true,true,""," driver _target == _this "];