Game Development Community

Vehicle enter/exit animations...

by Travis Vroman · in General Discussion · 06/13/2004 (6:15 pm) · 8 replies

Okay, here's another question that I've been meaning to ask but just now got around to the point of needing to. I got the code to work for entering a vehicle on a keypress, but now I have a new issue. What I want to do is find out how to make an animation of the player opening the car door, getting in, then closing the door, instead of just "popping" in the vehicle. (for an example look at GTA3 or Vice City). How do I do this, assuming I have the character animation already completed? How does the car model need to change?

-Barzahd

About the author

Attended the Art Institute of Fort Lauderdale for Video Game Art and Design. Strong background in traditional visual arts. Strong programming skills, particularly in real-time solutions.


#1
06/16/2004 (5:57 pm)
Anybody have ideas yet?
#2
06/16/2004 (6:19 pm)
I was wondering that too but because I don't have any modeling skill ... I'll just have to wait and see.

r/Alex
#3
06/16/2004 (6:36 pm)
What would be best if having some simple pathfinding to get the player to the right door pos, then playing the appropriate action animation and mounting the player.
#4
06/17/2004 (8:14 am)
I use an invisible dummy object on every door, then with the keystroke I cast a ray and if the object its hitting has "isVehicleMount=true" in its datablock (the dummies is true) then I play the right cardoor animation and the player anim. And final mount and play the door anim back again.
#5
06/17/2004 (6:02 pm)
Okay... that makes sense. David, could you possibly post an example?
#6
06/17/2004 (9:43 pm)
David... im also interested in this. any chance you could share a bit of your work?
#7
06/20/2004 (6:56 pm)
Why not just run an animation and stop the player's control when they mount / dis-mount the vehicle??
#8
05/30/2006 (11:08 am)
I know this thread is bit stale but could any one elaborate more on the process of adding dummies to cars, casting rays to check for the dummy, and playing animation across multiple objects?

Simple path finding to a car door sounds interesting too. I'm also thinking animations should play after the player has been mounted to the vehicle but I'm not sure how.

For instance in GTA, if you're close enough to a car door while the car is still moving and you press the button to get in, the player character moves along "attached" to the car while the door is being opened. The car then stops and the player character pulls the driver out.

The policemen in GTA are another good example. They get "attached" to the door even if your car is moving but fall off if the car hits a certain speed before they can open the door and bust you. I'm thinking they get unmounted and are told to play the "fell down" animation.

I think the idea in this thread would make a great resource. So please, share the wealth! :)