Game Development Community

CH4 - TGE1.5 - Toggle1stPPOV

by Jake Callery · in Torque Game Engine · 01/03/2007 (5:18 pm) · 4 replies

Hey guys,

Hopefully a quick question for you.

I'm trying to use the 1st edition of the book with TGE1.5
So far so good, however in CH4 I can't seem to get the
Toggle1stPPOV to work. When I run it with the book version of the engine
it works fine.

When I copy over the .exe for TGE1.5 it switching views doesn't seem to work, however
everything else seems to work just fine.

The key binding does work (tested it with an Echo), it just seems that the:
$firstPerson = !$firstPerson;

part doesn't seem to do anything in the new version of the engine.

Did something change slightly with how that is handled?
Any thoughts?

Thanks so very much for the help!

Jake

#1
01/03/2007 (7:59 pm)
$firstPerson = true;
function toggleFirstPerson(%val)
{
   if (%val)
   {
      $firstPerson = !$firstPerson;
      ServerConnection.setFirstPerson($firstPerson); // TGE 1.4+
   }
}
#2
01/04/2007 (3:38 pm)
Worked perfectly! Thanks so very much!

Jake

As a quick side question, is there a way to seach the individual "Sections" on this forum?
#3
01/04/2007 (7:05 pm)
I do not believe so. But you can refine your search after the initial search.
#4
01/04/2007 (7:11 pm)
Sounds good, thanks again.