Game Development Community

Key Binding Mount?

by John Eder · in Torque Game Engine · 02/27/2003 (2:29 pm) · 3 replies

For the game I'm working on, I'd like to have it so the player doesn't automatically mount the vehicle when walking around it simply because a player can take shelter from gunfire behind them. If any of you have played HALO, when you near a vehicle it says "Press X to Enter ...". I searched the forums but found nothing. If anyone has done this or would know where to begin with it, please post a reply.

Thanks.

#1
02/27/2003 (2:36 pm)
I think the easiest way would be to when onCollide is called inplayer instead of just jumping in have the players mountVehicle flag false untill a key is pressed ..
Edit:
you Might need to recollide to do it there are better cleaner ways
this one would take 5 seconds :)

Dont forget to use the handy dandy center print to tell the user what key to press when the collide happens :)
#2
02/27/2003 (2:42 pm)
I posted a resource which does exactly what you want, though the resource hasn't been accepted by GG yet.

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3925

Hope this helps.
#3
02/27/2003 (2:59 pm)
Badguy & Mike:
Thanks for the quick replies. I'll have a look into this later today.