mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Don't allow loading unconscious player into locked vehicle
This commit is contained in:
@@ -149,7 +149,7 @@ if (isPlayer cursorTarget) then {
|
|||||||
r_player_actions set [count r_player_actions, _action3];
|
r_player_actions set [count r_player_actions, _action3];
|
||||||
};
|
};
|
||||||
//Load Vehicle
|
//Load Vehicle
|
||||||
if (count _vehClose > 0 && _unconscious) then {
|
if (count _vehClose > 0 && {!locked (_vehClose select 0)} && {_unconscious}) then {
|
||||||
r_action = true;
|
r_action = true;
|
||||||
_vehicle = _vehClose select 0;
|
_vehicle = _vehClose select 0;
|
||||||
_vehType = getText (configFile >> "CfgVehicles" >> typeOf _vehicle >> "displayName");
|
_vehType = getText (configFile >> "CfgVehicles" >> typeOf _vehicle >> "displayName");
|
||||||
|
|||||||
Reference in New Issue
Block a user