Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Vehicle transition

Years of Service
User Offline
Joined: 4th Nov 2002
Posted: 16th Dec 2002 04:45
Can someone tell me how to go from a player pawn(walking) to getting into a vehicle(driving)
Im stumped
Years of Service
User Offline
Joined: 15th Oct 2002
Location: Behind You...
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:

whereby when the player collides with the vehicle:
and when they get out:

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

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

Yours programmingly,

Life is like a hot bath, the longer you're in it, the more wrinkles you get.

Login to post a reply

Server time is: 2019-01-23 21:45:07
Your offset time is: 2019-01-23 21:45:07