Game Development Community

Defautl 3th person camera

by Yourself · in Technical Issues · 11/24/2008 (3:24 am) · 4 replies

Hi,

sorry if this isn't the right place to post, I'm new here ..

how can I set the third person camera as default and disable the first person one ?
I know that you can switch from 1st to 3th with tab but I only want a 3th camera ...

thx

#1
11/24/2008 (7:31 am)
In game.cs in the function cliententergame add this line

toggleFirstPerson(1); // switch on enter game
#2
11/24/2008 (7:42 am)
You can set to 3rd person with:

%clientConn.setFirstPerson(false);
#3
11/24/2008 (8:03 am)
To disable the toggle for 1st/3rd person camera modes remove (or comment) the keybind and relevant funtions in default.bind.cs.

To start in 3rd person mode simply add
%this.setFirstPerson(false);
to the bottom of function GameConnection::createPlayer in game.cs

edit: so many helpful people on here - must remember to refresh the page before posting.

As you can see there are various possible ways of doing this, much like anything in Torque. However you choose to do it is up to you.
#4
11/24/2008 (9:57 am)
Thx mates :)
Michael's solution worked perfect :)