Don't allow loading unconscious player into locked vehicle

This commit is contained in:
ebaydayz
2016-11-12 16:12:48 -05:00
parent db3d9bf474
commit e260d335ce

View File

@@ -149,7 +149,7 @@ if (isPlayer cursorTarget) then {
r_player_actions set [count r_player_actions, _action3];
};
//Load Vehicle
if (count _vehClose > 0 && _unconscious) then {
if (count _vehClose > 0 && {!locked (_vehClose select 0)} && {_unconscious}) then {
r_action = true;
_vehicle = _vehClose select 0;
_vehType = getText (configFile >> "CfgVehicles" >> typeOf _vehicle >> "displayName");