I have tried to make a script that will allow the player to control a ufo with these keys:
u=forewards
j=backwards
h=turn 90 degrees left
k=turn 90 degrees right
t=up
g=down
But it doesn't work unfortunatly, You can move up and down, and rotate left and right; but u cannot go forwards or backwards.
also when you are not on the craft it just keeps moving forwards; until you get on, which is not supposed to happen.
here is the code
;Artificial Intelligence Script
;Manual UFO Script
;u moves forwards
;j moves backwards
;h moves left
;k moves right
;t moves up
;g moves down
;Header
desc = Manual UFO
;Use with UFO entity
;Assign as AI Main
;Triggers
:state=0:state=1
;move up
:state=1,plrhigher=10,plrdistwithin=50,scancodekeypressed=20:state=5,coloff
;move down
:state=1,plrhigher=10,plrdistwithin=50,scancodekeypressed=34:state=6,coloff
;move forewards
:state=1,plrhigher=10,plrdistwithin=50,scancodekeypressed=22:state=10,coloff
;move backwards
:state=1,plrhigher=10,plrdistwithin=50,scancodekeypressed=36:state=12,coloff
;move left
:state=1,plrhigher=10,plrdistwithin=50,scancodekeypressed=35:state=14,coloff
;move right
:state=1,plrhigher=10,plrdistwithin=50,scancodekeypressed=37:state=16,coloff
;back to start
:state=1,plrdistfurther=51:state=3,coloff
:state=3,playerassociated:state=1,unassociateplayer,colon
;move up and down
:state=5,plrdistwithin=50:sound=audiobankatmosmotorhum.wav,state=8,associateplayer
:state=5,plrdistfurther=55,playerassociated:state=1,unassociateplayer,colon
:state=6,plrdistwithin=50:sound=audiobankatmosmotorhum.wav,state=9,associateplayer
:state=6,plrdistfurther=55,playerassociated:state=3,unassociateplayer,colon
:state=8,raycastup=20 80:state=1
:state=8:state=1,moveup=1
:state=9,raycastup=-3 0:state=1
:state=9:state=1,moveup=-1
;move forwards
:state=10,plrdistwithin=50:sound=audiobankatmosmotorhum.wav,state=11,associateplayer
:state=10,plrdistfurther=55,playerassociated:state=1,unassociateplayer,colon
:state=11,raycastup=-3 0:state=1
:state=11:state=1,movefore=1
;move backwards
:state=12,plrdistwithin=50:sound=audiobankatmosmotorhum.wav,state=13,associateplayer
:state=12,plrdistfurther=55,playerassociated:state=1,unassociateplayer,colon
:state=13,raycastup=-3 0:state=1
:state=13:state=1,moveback=1
;move left
:state=14,plrdistwithin=50:sound=audiobankatmosmotorhum.wav,state=15,associateplayer
:state=14,plrdistfurther=55,playerassociated:state=1,unassociateplayer,colon
:state=15,raycastup=-3 0:state=1
:state=15:state=1,rotatey=-90
;move right
:state=16,plrdistwithin=50:sound=audiobankatmosmotorhum.wav,state=17,associateplayer
:state=16,plrdistfurther=55,playerassociated:state=1,unassociateplayer,colon
:state=17,raycastup=-3 0:state=1
:state=17:state=1,rotatey=90
note: the bits saying ";move right" and things like that aren't in the actuall code, they are there yo make it easier for you guys.
this will obviously require help from master scripters. I'm sure this is possible, ive just made a mistake somewhere.
Woot Kingdom hearts owns!