Ok, I'm very stumped right now. This code
set object to object orientation 256,1
set object to object orientation 257,1
move object 256,10
move object 257,-5
WHILE MAYT# < 5
IF MATRIX EXIST(MAYT#)=1
IF OBJECT POSITION Y(256) <> GET GROUND HEIGHT(MAYT#, object position x(256) , object position z(256))
position object 256,object position x(256),1000,object position z(256)
IF OBJECT POSITION Y(256) <> GET GROUND HEIGHT(MAYT#, object position x(256) , object position z(256))
if object position y(256)> GET GROUND HEIGHT(MAYT#, object position x(256) , object position z(256))
PITCH OBJECT UP 1, 0.1
endif
if object position y(256)< GET GROUND HEIGHT(MAYT#, object position x(256) , object position z(256))
PITCH OBJECT DOWN 1, 0.1
endif
ENDIF
ENDIF
IF OBJECT POSITION Y(257) <> GET GROUND HEIGHT(MAYT#, object position x(257) , object position z(257))
if object position y(257)< GET GROUND HEIGHT(MAYT#, object position x(257) , object position z(257))
PITCH OBJECT UP 1, 0.1
endif
if object position y(257)> GET GROUND HEIGHT(MAYT#, object position x(257) , object position z(257))
PITCH OBJECT DOWN 1, 0.1
endif
ENDIF
ENDIF
MAYT#=MAYT#+1
ENDWHILE
MAYT#=1
Won't work. He just pitches up and down, over and over again, the effect will be more visible if you change all the 0.1's to 1's. The object 1 is the player, 256 and 257 are invisible objects in front and behind him.
PS: This is in DBC
It's amazing how much TV has raised us. (Bart Simpson)
