
_plane = _this select 0
_plane vehiclechat "Air Brakes Engaged"
_brake = 5
_vx = velocity _plane select 0
_brakex = _vx/_brake
_vz = velocity _plane select 1
_brakez = _vz/_brake

~0.5

?(speed _plane >30): goto "Brake"

#Brake
_vx = velocity _plane select 0
_vy = velocity _plane select 2
_vz = velocity _plane select 1
_plane setvelocity [(_vx - _brakex),(_vz - _brakez),_vy]
_plane animate ["ablb",1]
_plane animate ["ablt",1]
_plane animate ["abrb",1]
_plane animate ["abrt",1]


exit
