mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-10-03 15:51:36 +03:00
Lock/unlock vehicle optimizations part 2
This commit is contained in:
1 parent
8114ea669d
commit
888ba11add
1 file changed
+7
-3
@@ -2,6 +2,10 @@ private ["_vehicle","_status"];
|
||||
_vehicle = _this select 0;
|
||||
_status = _this select 1;
|
||||
|
||||
//if (local _vehicle) then {
|
||||
_vehicle lock _status;
|
||||
//};
|
||||
if (local _vehicle) then {
|
||||
if(_status) then {
|
||||
_vehicle setVehicleLock "LOCKED";
|
||||
} else {
|
||||
_vehicle setVehicleLock "UNLOCKED";
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user