Game Development Community

Adding Character to A Scene

by Eric South · in Torque 3D Professional · 11/08/2012 (7:32 pm) · 5 replies

Is the only way to add a character to a scene (in a manner such as an NPC) by creating a spawnsphere for that character? The FPS Tutorial (oddly) considers teaching you adding a character to a scene as making a new datablock and assigning it to the spawn sphere.

It seems odd that you wouldn't be able to place and adjust these directly in the world editor, but I can't find anything on it. In fact, I'm actually finding it quite difficult to find any information I need onsite or in documentation.

Anyway, I'm just wanting to add an idle character to the scene that the player will eventually interact with.

#1
11/08/2012 (11:33 pm)
If you just want an idle character you might just want to add it as a static shape (just find the model and import it into the scene)
#2
11/08/2012 (11:55 pm)
Well then they're stuck in strange positions and doesn't make them seem "alive"
#3
11/09/2012 (12:17 am)
Haven't worked much with this, but I believe it's because they need an ambient animation. Set this through the shape editor and see if it fixes it :)
#5
11/10/2012 (5:42 am)
look into spawnPlayer() function.
u will find it somewhere in "scripts/server" folder

for deleting u can search for
%player.delete();

just add a breakpoint into each of them then play the game.