Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ((dayz_myCursorTarget != _cursorTarget) and _isVehicle and !_isMan and _hasToolbox and (damage _cursorTarget < 1) and !_isDisallowRepair) then {
- if (s_player_repair_crtl < 0) then {
- dayz_myCursorTarget = _cursorTarget;
- _menu = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_REPAIRV", "\z\addons\dayz_code\actions\repair_vehicle.sqf",_cursorTarget, 0, true, false, "",""];
- if(!locked _cursorTarget) then {
- _menu1 = dayz_myCursorTarget addAction [localize "STR_EPOCH_PLAYER_SALVAGEV", "\z\addons\dayz_code\actions\salvage_vehicle.sqf",_cursorTarget, 0, true, false, "",""];
- s_player_repairActions set [count s_player_repairActions,_menu1];
- };
- s_player_repairActions set [count s_player_repairActions,_menu];
- s_player_repair_crtl = 1;
- };
- } else {
- {dayz_myCursorTarget removeAction _x} forEach s_player_repairActions;s_player_repairActions = [];
- s_player_repair_crtl = -1;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement