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

Author
Message
Swankhy
15
Years of Service
User Offline
Joined: 4th Nov 2002
Location:
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
Moggie100
15
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:
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.

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: 2018-06-23 14:51:38
Your offset time is: 2018-06-23 14:51:38