Movemap bind
by Howard Dortch · in Torque Game Engine · 09/07/2004 (6:07 pm) · 6 replies
In the files where the keys are bound there are functions like toggleZoom. I did a find in files in the game scripts and in the engine but can't find this function or some of the others, how and where does this call some function to work?
#2
09/10/2004 (6:18 am)
Yeah its called from that file ...where is the function?
#3
09/10/2004 (7:31 am)
Check default.bind.cs in the client/scripts directory. Not only are the default movemap.bind commands there, but so are many of the functions that get called, including toggleZoom.
#4
In the file default.bind.cs there is a function called toggleZoom can someone please tell me where this function is. not the words but the place where the values are set it should look like this
function toggleZoom()
{
}
09/11/2004 (4:52 am)
Ok perhpps this question is too confusing so I will try to reword it. In the file default.bind.cs there is a function called toggleZoom can someone please tell me where this function is. not the words but the place where the values are set it should look like this
function toggleZoom()
{
}
#5
function toggleZoom( %val )
{
if ( %val )
{
$ZoomOn = true;
setFov( $Pref::player::CurrentFOV );
}
else
{
$ZoomOn = false;
setFov( $Pref::player::DefaultFov );
}
}
09/11/2004 (7:29 am)
The function is in the above file "client/scripts/default.bind.cs" at line 158. function toggleZoom( %val )
{
if ( %val )
{
$ZoomOn = true;
setFov( $Pref::player::CurrentFOV );
}
else
{
$ZoomOn = false;
setFov( $Pref::player::DefaultFov );
}
}
#6
09/11/2004 (4:08 pm)
Thanks, looks like the find in files function for Brain Editor Pro is broke, sigh
Torque Owner Russell Tracey