ATTE_Lift.sqf 1.1 KB

12345678910111213141516171819202122
  1. params["_this","_user"];
  2. _this addAction ["<t color='#f4a442'>Engage Large Asset Clamp</t>",{
  3. params["_vic"];
  4. _vic allowdamage false;
  5. _objects= nearestObjects [player, ["RD501_UGV_01_F","O_JM_TX130_1_RD501","O_JM_TX130r_1_RD501","O_JM_TX130m1_1_RD501","O_JM_TX130m1r_1_RD501","O_JM_TX130m2_1_RD501","O_JM_TX130m2r_1_RD501"], 20];
  6. _vex= _objects select 0;
  7. _vex allowdamage false;
  8. _vex attachTo [_vic, [0,-2,-7.5]];
  9. removeAllActions _vic;
  10. _vic addAction ["<t color='#f44f41'>Disengage Large Asset Clamp</t>", {
  11. params["_vic"];
  12. _objects= nearestObjects [player, ["RD501_UGV_01_F","O_JM_TX130_1_RD501","O_JM_TX130r_1_RD501","O_JM_TX130m1_1_RD501","O_JM_TX130m1r_1_RD501","O_JM_TX130m2_1_RD501","O_JM_TX130m2r_1_RD501"], 20];
  13. _vex= _objects select 0;
  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 "];