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

AI "Get In" Command's Fixed when unconscious #207

Merged
merged 3 commits into from
Jun 9, 2024
Merged
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
6 changes: 5 additions & 1 deletion A3A/addons/core/functions/Revive/fn_unconscious.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ if (isPlayer _unit) then {
openMap false;

{
if ((!isPlayer _x) and (vehicle _x != _x) and (_x distance _unit < 50)) then {unassignVehicle _x; [_x] orderGetIn false}
unassignVehicle _x; // Ensure AI aren't assigned to a vehicle
if ((!isPlayer _x) and (vehicle _x != _x) and (_x distance _unit < 50)) then {
_x action ["getOut", vehicle _x]; // Added to force AI to get out of the vehicle
[_x] orderGetIn false;
};
} forEach units group _unit;
}
else {
Expand Down