; 
; Vehicle loading script for AGS-17 Addon by Kegetys <Kegetys@raketti.net> 
; http://www.ofp.kege.cjb.net
;

?(speed agsScript_rekka > 5) : goto "toofast"
?((getpos agsScript_rekka) select 2 > 2) : goto "toofast"

titleText ["Unloading...", "PLAIN DOWN"] 

~1

_a = getDir agsScript_rekka
_moveX = (sin _a) * 4
_moveY = (cos _a) * 4

agsScript_gun setpos[(getpos agsScript_rekka select 0) - _moveX,(getpos agsScript_rekka select 1) - _moveY,0]
agsScript_gun setDir (_a - 180)

agsScript_gun_remAction = 1
publicvariable "agsScript_gun_remAction"

#toofast