Yea it works until you do something like place an object somewhere or the speed of the PC changes. It's too critical to be reliable. The MV is also a little too large, choppers work better as they have a smaller wheel base well some do.
I just added a little downwards velocity and it lands a little quicker now, as it's height based it's not suitable for roof top landings.
As you know the more you mess with the AI the more it will kick you in the teeth and so will probably go wrong at the worst moment.
// nul=[planename] execvm "hover.sqf";
_plane = _this select 0;
while {Alive _plane and (speed _plane >= 9) } do
{
_xv = velocity _plane select 0;
_yv = velocity _plane select 1;
_zv = velocity _plane select 2;
_plane setvelocity [_xv/1.1,_yv/1.1,_zv];
sleep 0.2;
};
Hint format["%1 Landing",_plane];
while {Alive _plane and (getpos _plane select 2 >= 15)} do
{
_xv = velocity _plane select 0;
_yv = velocity _plane select 1;
_zv = velocity _plane select 2;
_plane setvelocity [_xv,_yv,_zv-1];
sleep 0.2;
};
Hint format["%1 is Down",_plane];