repairTo65.sqf 889 B

1
  1. _truck=cursortarget; if (vehicle player == player) then { if (player distance _truck < 3) then { if ("ToolKit" in items player) then { if(animationState player != "AinvPknlMstpsnonWnonDnon_medic_1" ) then { player playMove "AinvPknlMstpsnonWnonDnon_medic_1"; sleep 3; player playActionNow "stop"; player playMove "AinvPknlMstpsnonWnonDnon_medic_1"; sleep 3; player playActionNow "stop"; player playMove "AinvPknlMstpsnonWnonDnon_medic_1"; sleep 3; player playActionNow "stop"; player playMove "AinvPknlMstpsnonWnonDnon_medic_1"; sleep 3; }; sleep 3; player removeItem "ToolKit"; _truck setdammage 0.35; hintSilent "Repaired vehicle"; } else { hintSilent "You need a toolkit to repair this vehicle!"; }; }; };