Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick Mount: Check vehicle simulation #7886

Merged
merged 1 commit into from
Sep 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions addons/quickmount/functions/fnc_canShowFreeSeats.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion addons/quickmount/functions/fnc_getInNearest.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down