Skip to content

Commit c0ffef9

Browse files
authored
Mount: improvement & added voice chat
1 parent f04dbfc commit c0ffef9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

addons/AIO_AIMENU/mount.sqf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ _getInFnc =
7676

7777
if (_unit distance _target > _distance OR !(alive _unit) OR !(alive _target)) exitWith {_unit setVariable ["AIO_Mount_Canceled", 1]};
7878
_unit doFollow player;
79+
sleep 0.2;
7980
_unit doMove (getPos _unit);
81+
sleep 0.1;
8082
if (_getInAs == 1) then {
8183
_unit assignAsDriver _target;
8284
_unit action ["getinDriver", _target];
@@ -110,6 +112,15 @@ _getInFnc =
110112
[_unit] orderGetIn true;
111113
};
112114
};
115+
if (AIO_useVoiceChat) then {
116+
[] spawn {
117+
private _dummy = "#particlesource" createVehicleLocal ASLToAGL getPosWorld player;
118+
_dummy say2D "AIO_say_BoardVeh";
119+
sleep 2;
120+
deleteVehicle _dummy;
121+
};
122+
};
123+
113124
private _roleArray = ["" ,"as Driver","as Commander","as Gunner","as Passenger"];
114125
player groupChat (format ["Get in that %1 %2", _vehname, (_roleArray select _vehrole)]);
115126
_vehiclePositions = fullCrew [_veh, "", true];

0 commit comments

Comments
 (0)