There is no getvelocity command
*slaps head*
And on top of that setvelocity is an array format...now I really feel dumb...
However, there is a
velocity command. Try this:
_plane=_this select 0
#Loop
~.1
?planeDone: exit
?speed _plane<=10: goto "Loop"
_plane setvelocity [(velocity _plane select 0)*.9,(velocity _plane select 1)*.9,(velocity _plane select 2)*.9]
~.9
goto "Loop"
Call the script in the init field of the plane like this:
[this] exec "script.sqs"
Trapper's script might work too, but it seemed a bit over-complicated to me...I don't mean any offense, Trapper
Once again, this isn't tested
-Pilot
EDIT:
Btw, do not change the _plane=_this select 0 part. When you call the script like I showed you, the plane's id is automatically entered into the script, there is no need to actually put the plane's name in the script.
...I hope that's understandable...