darklord Posted December 22, 2013 Report Share Posted December 22, 2013 Hi. Tryed to add in fn_selfActions.sqf //Repairing Vehicles if ((dayz_myCursorTarget != _cursorTarget) and _isVehicle and !_isMan and _hasToolbox and (damage _cursorTarget < 1) and !_isDisallowRepair and !locked) then { but it don't work. Link to comment Share on other sites More sharing options...
0 Axe Cop Posted December 22, 2013 Report Share Posted December 22, 2013 you did not specify what vehicle you want to check for !locked, so replace !locked with !locked _cursorTarget darklord 1 Link to comment Share on other sites More sharing options...
0 darklord Posted December 23, 2013 Author Report Share Posted December 23, 2013 Oh, thanks, will try) Link to comment Share on other sites More sharing options...
0 cen Posted December 23, 2013 Report Share Posted December 23, 2013 Replace the section in fn_selfActions.sqf with the one below: //Repairing Vehicles if ((dayz_myCursorTarget != _cursorTarget) and _isVehicle and !_isMan and _hasToolbox and (damage _cursorTarget < 1) and !_isDisallowRepair) then { _hasKey = _ownerID in _temp_keys; _oldOwner = (_ownerID == dayz_playerUID); 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, "",""]; s_player_repairActions set [count s_player_repairActions,_menu]; 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_repair_crtl = 1; } } else { {dayz_myCursorTarget removeAction _x} forEach s_player_repairActions;s_player_repairActions = []; s_player_repair_crtl = -1; }; }; darklord 1 Link to comment Share on other sites More sharing options...
0 Aristoi Posted December 26, 2013 Report Share Posted December 26, 2013 @cen: I notice that you put the "s_player_repair_crtl = 1;" within the IF block for it being unlocked. I couldn't tell from the code what the purpose of that variable is. Would it need to be set when a repair action on a locked car was to be performed? Link to comment Share on other sites More sharing options...
Question
darklord
Hi. Tryed to add in fn_selfActions.sqf
but it don't work.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now