Posted: 16th Dec 2002 4:45
Can someone tell me how to go from a player pawn(walking) to getting into a vehicle(driving)
Im stumped
Posted: 16th Dec 2002 17:54
If you've got the vehicle movement code and the walking code you can put them into 2 gosub routines like this:
+ Code Snippet
do

if driving=1
gosub drivercontrol
else
gosub playercontrol
endif

sync
loop

playercontrol:
`player motion control here
return

drivingcontrol:
`driving control here
return


whereby when the player collides with the vehicle:
driving=1
and when they get out:
driving=0

This can be extended if more than one vehicle is to be driven by having different states of 'driving' ie:

"driving=0" <-- player walking
"driving=1" <-- player driving car
"driving=2" <-- player driving boat
"driving=3" <-- player driving tank
etc.

However if you dont have your walking code and driving code this whole reply is useless.

If you want any other help e-mail me or call me on msn through moggie100@hotmail.com

Yours programmingly,
Mog.