Skip to content

Commit a7e92c2

Browse files
authored
Fixed player stopping in MP scenarios
1 parent 9f05685 commit a7e92c2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

addons/AIO_AIMENU/useFirstAid.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ _unit assignTeam _assignedTeam1;
3333
_tarPos = getPos _target;
3434
_vehT = vehicle _target;
3535

36-
if (vehicle _target != _target && _target != player) then {
36+
if (vehicle _target != _target && !(isPlayer _target)) then {
3737
doGetOut _target;
3838
waitUntil {!alive _target OR vehicle _target == _target};
3939
sleep 1;
@@ -104,7 +104,7 @@ if (alive _unit && _unit distance _tarPos < 2.5) then {
104104
};
105105
sleep 2;
106106
_unit doWatch objNull;
107-
if (_target != player) then {
107+
if !(isPlayer _target) then {
108108
_target forcespeed -1;
109109
if (_target getVariable ["AIO_unitInCover", 0] == 0) then {
110110
_target doFollow player;

addons/AIO_AIMENU/useMedikit.sqf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ _unit assignTeam _assignedTeam1;
3838
_tarPos = getPos _target;
3939
_vehT = vehicle _target;
4040

41-
if (vehicle _target != _target && _target != player) then {
41+
if (vehicle _target != _target && !(isPlayer _target)) then {
4242
doGetOut _target;
4343
waitUntil {!alive _target OR vehicle _target == _target};
4444
sleep 1;
@@ -157,7 +157,7 @@ if (alive _unit && alive _target && _unit distance _tarPos < 2.5) then {
157157
};
158158
sleep 2;
159159
_unit doWatch objNull;
160-
if (_target != player) then {
160+
if !(isPlayer _target) then {
161161
_target forcespeed -1;
162162
if (_target getVariable ["AIO_unitInCover", 0] == 0) then {
163163
_target doFollow player;

0 commit comments

Comments
 (0)