Game Development Community

Loading Players into Torque 3D !!

by Liew Pak San · in Torque 3D Professional · 07/10/2009 (1:37 am) · 2 replies

How do I load new players(for Steering Purposes, at least 3-4) into a Torque 3D project or a FPS genre kit ?
I also tried following a method mentioned in the Advanced 3D Game Programming book, by adding spawn spheres and few code changes, but it only works for TGE. I also see that the entire folder and file structure has changed between these versions. Please help me out in this regard.

#1
07/10/2009 (4:03 am)
As far as I've seen the code in Beta 3, you can drop spawn spheres into your level, and select the datablocks that describe what needs to be spawned.

I haven't checked it and I'm not using it, I just saw this when I did a diff between Beta 2 and Beta 3.

Good luck!
#2
07/10/2009 (10:24 am)
@Konrad
Yes, that's how it works.

@Liew Pak San
You setup your various player datablocks as per any of the existing examples. These examples are in the "art/datablocks/players" directory in the Template. All of the examples there derive/inherit from a "default" player datablock in player.cs. In the FPS kit all datablock examples are simply located in "art/datablocks/player.cs"

When you place a spawnpoint in your level from within the editor you can specify a specific player datablock that can be spawned from that location. Little secret: it can spawn more than just players...

There was a problem with re-spawning in Beta3 for the Template that's been corrected for Beta4.