Make minor adjustment to push stuck plane action

This commit is contained in:
ebaydayz
2016-08-21 17:03:47 -04:00
parent 745e287202
commit 8ef349e2bb
2 changed files with 3 additions and 3 deletions

View File

@@ -301,9 +301,9 @@ if (!isNull _cursorTarget && !_inVehicle && !_isPZombie && (player distance _cur
s_player_flipveh = -1;
};
if (_isPlane && _isAlive && count (crew _cursorTarget) == 0) then {
if (_isPlane && {_isAlive} && {count (crew _cursorTarget) == 0}) then {
if (s_player_pushPlane < 0) then {
s_player_pushPlane = player addAction [format[localize "str_actions_push_plane",_text], "\z\addons\dayz_code\actions\player_pushPlane.sqf",_cursorTarget,1,true,true];
s_player_pushPlane = player addAction [format[localize "str_actions_push",_text], "\z\addons\dayz_code\actions\player_pushPlane.sqf",_cursorTarget,1,true,true];
};
} else {
player removeAction s_player_pushPlane;

View File

@@ -863,7 +863,7 @@
<French>Retourner %1</French>
<Czech>Otočit %1</Czech>
</Key>
<Key ID="str_actions_push_plane">
<Key ID="str_actions_push">
<English>Push %1</English>
</Key>
<Key ID="str_actions_stats">