mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Update EPOCH_server_lockVehicle.sqf
Allow Locking, if driver is dead. Allow locking, if lockOwner already is lockedOwner
This commit is contained in:
parent
389afe61ff
commit
1b2aac3bdd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user