Game Development Community

Camera (how do I change the position of the 3rd person cam)

by Jonathan Rose · in Torque Game Engine · 08/03/2003 (1:00 am) · 3 replies

Im wondering how to pull back the camera on the 3rd person cam, also, how do I make the 1st person cam unavailable to the player, finally how do I make the camera start in third person mode.

#1
08/03/2003 (1:26 am)
Jonathan,

To move the third person cam away from the player look for the variable:

cameraMaxDist

in fps\server\scripts\player.cs

I think by default this is set to 3 - increase the number to move the camera back.

To start in third person add the line:

$firstPerson = false;

to the end of the initClient() function in fps\client\init.cs

As for making the 1st person cam unavailable to the player just removed the bind command to the tab key that calls the toggleFirstPerson function.

so you're looking to remove:

moveMap.bind(keyboard, tab, toggleFirstPerson );

from fps\client\scripts\default.bind.cs

and:

moveMap.bind(keyboard, "tab", toggleFirstPerson);

from fps\client\config.cs

-Greg.
#2
08/03/2003 (1:36 am)
Wow, thanks!
#3
08/03/2003 (1:46 am)
Edit: nevermind, I figured it out.