Game Development Community

Starting in third person view by default

by rpi (#0011) · in Torque Game Engine · 02/28/2005 (2:22 pm) · 3 replies

I was wondering, how would I set the camera mode to be third person by default? I'm working with starter.fps as a base, and noticed the toggleFirstPerson function in starter.fps/client/scripts/default..bind.cs, where it just flips a variable $firstPerson. The problem is, I'm not sure where I should adjust this variable for it to take effect when a player spawns.

Any help would greatly appreciated.

#1
02/28/2005 (2:48 pm)
If you place...

$FirstPerson = 0;

just above the function...

function toggleFirstPerson(%val)

Then all players should default to 3rd person to start. And you can also go to line 32 in GameConnection.cc and change...

bool GameConnection::mFirstPerson = true;

to...

bool GameConnection::mFirstPerson = false;
#2
03/01/2005 (6:03 am)
Great to see RPI is using Torque. I worked there for about a year. I live in Green Island.
#3
03/01/2005 (2:06 pm)
Thanks for the info. My problem was that I was setting $firstPerson = false, which apparently isn't quite the same.