Game Development Community

Mounting on Spawn

by N · in Torque Game Engine · 01/20/2008 (9:12 am) · 2 replies

When a game starts, I need each player to spawn mounted on a vehicle. How do I go about doing this?

What I'm thinking is that I would need to go to the player spawn code, spawn a vehicle next to the player, then mount the vehicle. Would this work, or is there a better way?

#1
01/30/2008 (1:48 am)
It kinda depends on your game design. It is possible to spawn the client mounted to a vehicle as it's controlObject, but then he can't exit the vehicle as a player.

In my game, I have bots who spawn with a vehicle between them and their first path point, for example, so that can work, too. Depends on what you want.
#2
01/30/2008 (7:58 am)
Thanks, but I figured it out. I already had mountable vehicles, so when the client connected, I spawned a vehicle at their coordinates and mounted it. It was a lot easier than I expected it to be.