Game Development Community

Placing Mountable vehicles in mission

by Adrian Wright · in Torque Game Engine · 03/03/2002 (9:35 am) · 4 replies

I was wondering if there is a way, or if anyone has accomplished, placing mountable vehicles in the mission.

Example, I create a mission, and just like I place weapons in a ammo depot, I want to place tanks, planes etc... already in the game, so when the mission is loaded they are already there.

Right now we can only spawn vehicles, or have a vehicle station.

any help or thoughts would be welcome.

#1
03/03/2002 (10:07 am)
Hi,

I'm trying to do the same thing.

I can add vehicles via the mission editor, but when I load the mission the vehicle is not in the right place, in fact I can't see it anywhere. By looking at the object inspector in the editor it would appear that no matter where I save the car, it loads up at 0,0 and is travelling across the negative Z axis (falling?) very fast.
Now my guess as to what is happening is that the car is being loaded at pos(0,0,0) regardless of what it says in the mission file. Because this position is underneath the landscape the car is continously falling, which is why each time I refresh the editor display, the car has moved a lot down the z-axis.
Also, according to the editor inspector, the car is rotated around 1,1,0 regardless of what it is saved as.

So in summary, I think that vehicles are loaded OK from a mission file, but their position and orientation is not.

Why isn't the car loading up in the right place?
Has anyone else managed to save a vehicle position in a mission and reload it successfully?

Thanks.
#2
03/03/2002 (4:39 pm)
What i did was to simply add a spawnsphere system that spawns vehicles.

I do not knwo if this would suit your purpose but it is an idea :)
#3
03/03/2002 (6:32 pm)
I guess I would have to more undersand how your system works.
#4
03/03/2002 (8:20 pm)
It works essentially the same as a player spawnsphere

You place a spawnsphere in the mission and, you can then spawn a vehicle at a random location within that spawnsphere.

If you wanted it in a fixed location....just make it a really small spawnsphere...