mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Check if vehicle has simEnabled before mounting (#7886)
This commit is contained in:
parent
6140a94efe
commit
38baa8dc6c
@ -30,6 +30,7 @@ GVAR(enabled)
|
||||
}
|
||||
&& {alive _vehicle}
|
||||
&& {2 > locked _vehicle}
|
||||
&& {simulationEnabled _vehicle}
|
||||
&& {
|
||||
-1 == crew _vehicle findIf {alive _x}
|
||||
|| {0.6 <= side group _unit getFriend side group _vehicle}
|
||||
|
@ -37,7 +37,7 @@ if ((isNull _target) && {alive _interactionTarget}) then {
|
||||
_target = (_objects param [0, []]) param [2, objNull];
|
||||
};
|
||||
|
||||
if (locked _target in [2,3]) exitWith {
|
||||
if (locked _target in [2,3] || {!simulationEnabled _target}) exitWith {
|
||||
[localize LSTRING(VehicleLocked)] call EFUNC(common,displayTextStructured);
|
||||
true
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user