Game Development Community

Mountng a car in FPS (TGE 1.4)

by Randy Hearn - Magnum · in Torque Game Engine · 12/19/2005 (5:26 pm) · 3 replies

Don't know what happened on my last post. It posted before I could type the message. Sorry bout that.

What I have done is created a Dodge pickup and created a mount point mount0. I have copied over the car.cs from the starter.racing tut and have set mostly everything up and I can insert the car in my game. I have had it in as Shapebase and Imagebase .. need to find out more on this.


Problem is I can find a lot of tutorials on mouting things, but not really clear on how to create the datastructure.


I have also modified the default.bind to map the "E" kep to enter the car. Problem is, not sure what command I should issue. so far I have the following command, but unclear on what to add for the ???.


moveMap.bindCmd(keyboard, "e", "commandToServer('?????');", "");


I would post more on my car.cs but i have hacked it a bit, and need to get it back to where I was -:))

Suggestions? Links?

About the author

Technical Product Designer (Mechanical Design) for Boeing for over 25 years working with CAD and PLM systems. I have a Associates Degree in Business and a partial B.S. in Game and Simulation, just couldn't see paying the costs for some of the classes.


#1
12/19/2005 (6:26 pm)
This is an excellent tutorial: http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3925

It got me a vehicle up and running in no time. FYI, You have to spawn the vehicles, opening the world editor screws up thier functionality for some reason.
#2
12/19/2005 (6:56 pm)
I was just looking through that one. I will try the scripts and see how it works.

Will let ya know..
#3
12/19/2005 (7:31 pm)
Ok, bad idea to hit refresh key. Double posts... Sorry.



But that resource worked thanks. That is a starting point. Not just to sit back and figure out what I actually just did:)



I could not use my own vehicle, I could mount but no movement. Gotta look at the dts nodes and see what I am missing.

Other issue is you are correct. Gotta get these to spawn. Entering V to drop a truck on command is boring :)))

Thanks