Game Development Community

t3d 3.5.1 - how do you set 3d person camera on mission start?

by Rob McNaughton · in Torque 3D Beginner · 10/04/2014 (10:40 am) · 2 replies

Hi
I want a 3rd person camera 100% of the time.
Looking through older posts I have been trying to insert this a few places to no avail.
$firstPerson = false;

I have commented out all the bindings to change camera successfully, but now I'm 100% firstPerson instead of 3rd.

I know it must be something super simple I am missing. Help Appreciated.
-Rob

About the author

Lead Technical Artist for Blizzard's "Team 1" working on StarCraft II. Rob has tinkered with torque for a long time and has yet to make something to show. Soon...


#1
10/04/2014 (12:24 pm)
You'll want to call %client.setFirstPerson(false); at some point after the player has been spawned. Look at GameCore::spawnPlayer() to see how a player is spawned.
#2
10/04/2014 (1:37 pm)
In \server\gameCore.cs I had this

function GameConnection::spawnPlayer(%this, %spawnPoint)
{
Game.spawnPlayer(%this, %spawnPoint);
$firstPerson = false;
}
And that didn't do anything.

Based on your comment I added %client.setFirstPerson(false); to the end of function GameCore::spawnPlayer(%game, %client, %spawnPoint, %noControl)
and it worked nicely!

Thank You!
-Rob