Update EPOCH_server_lockVehicle.sqf

Allow Locking, if driver is dead.
Allow locking, if lockOwner already is lockedOwner
This commit is contained in:
He-Man 2016-07-07 17:47:30 +02:00 committed by GitHub
parent 389afe61ff
commit 1b2aac3bdd

View File

@ -54,7 +54,7 @@ _crew = [];
_logic = if !(_crew isEqualTo []) then {
if (_player in _crew) then {
// allow unlock if player is the driver or is inside the vehicle with out a driver.
(_player isEqualTo _driver || isNull(_driver))
(_player isEqualTo _driver || isNull(_driver) || _lockedOwner == _lockOwner || !alive _driver)
} else {
// allow only if player is already the owner as they are not inside the occupied vehicle.
(_lockedOwner == _lockOwner)