Add animation to player_sharpen

This commit is contained in:
A Man
2019-12-03 23:52:23 +01:00
parent f1aecd9db3
commit b7892bfc68

View File

@@ -19,7 +19,6 @@ closeDialog 1;
// item is missing or tools are missing // item is missing or tools are missing
if (isNil "_waterUsed") exitWith { if (isNil "_waterUsed") exitWith {
//_displayName = getText (configFile >> "CfgMagazines" >> _use >> "displayName");
localize "str_sharpen_missing_water" call dayz_rollingMessages; localize "str_sharpen_missing_water" call dayz_rollingMessages;
dayz_actionInProgress = false; dayz_actionInProgress = false;
}; };
@@ -31,6 +30,13 @@ if !("equip_brick" IN magazines player) exitWith {
dayz_actionInProgress = false; dayz_actionInProgress = false;
}; };
_finished = ["Medic",1] call fn_loopAction;
if (!_finished) exitWith {
localize "STR_EPOCH_PLAYER_26" call dayz_rollingMessages;
dayz_actionInProgress = false;
};
if (player hasWeapon _item) then { if (player hasWeapon _item) then {
_displayName = getText (configFile >> "CfgWeapons" >> _item >> "displayName"); _displayName = getText (configFile >> "CfgWeapons" >> _item >> "displayName");