File tree Expand file tree Collapse file tree 5 files changed +13
-5
lines changed
Expand file tree Collapse file tree 5 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 141141 _veh setVariable [" AIO_pitch" , _desiredPitch ];
142142 };
143143
144+
145+ _height = _veh getVariable [" AIO_height" , 0 ];
146+
147+ if (_height < 15 && _speed < 15 ) then {_veh action [" LandGear" , _veh ]};
148+
144149 if (_veh == AIO_vehiclePlayer) then {
145150 _disp = uiNamespace getVariable [' AIO_helicopter_UI' , displayNull ];
146151 (_disp displayCtrl 1301 ) ctrlSetText str floor (3.6 * _speed );
159164 (_disp displayCtrl 1306 ) ctrlSetText str floor (_desiredBank );
160165 (_disp displayCtrl 1305 ) ctrlSetText " 0" ;
161166 };
162- (_disp displayCtrl 1300 ) ctrlSetText str floor ( _veh getVariable [ " AIO_height " , 0 ]) ;
167+ (_disp displayCtrl 1300 ) ctrlSetText str floor _height ;
163168 };
164169 } else {
165170 _veh setVariable [" AIO_lastVelocity" , velocity _veh ];
Original file line number Diff line number Diff line change @@ -169,6 +169,9 @@ waitUntil {
169169 };
170170 } else {
171171 [_unit ] call AIO_fnc_cancelAllTasks ;
172+ if (_task == 4 && {isPlayer ([_unit ,0 ,1 ] call AIO_fnc_getTask )}) then {
173+ [" AIO_medicIcon" , " onEachFrame" ] call BIS_fnc_removeStackedEventHandler ;
174+ };
172175 };
173176 } forEach AIO_taskedUnits;};
174177 (count AIO_taskedUnits == 0 )
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ if (!alive _target || {time > _wait || {(_target getVariable ["AIO_medic", objNu
2020 [_unit , _target , false ] call AIO_fnc_desync ;
2121 _target forceSpeed - 1 ;
2222 _target setVariable [" AIO_medic" , objNull ];
23+ if (isPlayer _target ) then {[" AIO_medicIcon" , " onEachFrame" ] call BIS_fnc_removeStackedEventHandler ;};
2324 };
2425 [_unit , 0 , 0 ] call AIO_fnc_setTask ;
2526};
@@ -135,6 +136,7 @@ if (_distance > _bounds) then {
135136 _target enableAI " MOVE" ;
136137 [_unit , _target , false ] call AIO_fnc_desync ;
137138 [_unit , 0 , 0 ] call AIO_fnc_setTask ;
139+ if (isPlayer _target ) then {[" AIO_medicIcon" , " onEachFrame" ] call BIS_fnc_removeStackedEventHandler ;};
138140 };
139141
140142 _dir = (getPosASL _target ) vectorDiff (getPosASL _unit );
@@ -173,9 +175,7 @@ if (_distance > _bounds) then {
173175 _unit enableAI " PATH" ;
174176 _unit enableAI " MOVE" ;
175177 [_unit , _target , false ] call AIO_fnc_desync ;
176- if (isPlayer _target ) then {
177- [" AIO_medicIcon" , " onEachFrame" ] call BIS_fnc_removeStackedEventHandler ;
178- };
178+ if (isPlayer _target ) then {[" AIO_medicIcon" , " onEachFrame" ] call BIS_fnc_removeStackedEventHandler ;};
179179 } else {
180180 _unit playMoveNow _move ;
181181 };
Original file line number Diff line number Diff line change 1- v1.1.2 -Beta
1+ v1.1.3 -Beta
You can’t perform that action at this time.
0 commit comments