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.
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.
#2
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.
07/10/2009 (10:24 am)
@KonradYes, 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.
Associate Konrad Kiss
Bitgap Games
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!