Game Development Community

Spawning as a Player or a Vehicle

by Jules · in Torque Game Engine Advanced · 10/23/2008 (1:02 pm) · 2 replies

I'm looking to either spawn as a player or a flying vehicle based on the player selection GUI, I'm not having much luck with this..

TGEA 1.7.1

if (%this.playerDB $= "AirCraft")
{
%player = new WheeledFlyingVehicle() {
datablock = %this.playerDB;
client = %this;
};
}
else
{
// Create the player object
%player = new Player() {
dataBlock = %this.playerDB;
client = %this;
};
}

On selecting the Air Craft from the GUI, I spawn into the game as a camera, no shape.

Any idea on where I'm going wrong here?

Thanks

#1
10/23/2008 (1:24 pm)
No matter. I figured a workaround, by spawning as a player, then spawn the Air Craft and mount the player to it.
#2
10/23/2008 (2:14 pm)
Except now, I spawn underneath the terrain, even though I have a spawn point above it, any ideas?