Converting This Resource to MS 3.5
by Chris Byars · in Torque Game Engine Advanced · 07/02/2006 (11:58 am) · 3 replies
I can't seem to figure out how to modify the new code in shapeBase.cpp to do what this one did in player.cpp: First/Third Person Weapon Model. Could anyone shed some light?
Thanks. :)
Thanks. :)
#2
Assuming that it is for determining 1st person/3rd person? Why not use the global boolean that is already there: $firstPerson.
I'm probably way of base though... heh.
EDIT: Err... your code changes are actual engine changes instead of script, heh. Still, that global script variable should have c++ exposure as well.
EDIT: Its accessible through the GameConnection::isFirstPerson() method
07/12/2006 (8:42 pm)
I haven't looked at any of your code yet, but why are you tacking on to the "fogExemption" variable... Assuming that it is for determining 1st person/3rd person? Why not use the global boolean that is already there: $firstPerson.
I'm probably way of base though... heh.
EDIT: Err... your code changes are actual engine changes instead of script, heh. Still, that global script variable should have c++ exposure as well.
EDIT: Its accessible through the GameConnection::isFirstPerson() method
#3
07/13/2006 (8:10 am)
Got it working. Updating resource.
Torque Owner Chris Byars
Ion Productions
I used to tack on to the "fogExemption" variable, but now the way things are organized I get an "undeclared identifier" if used as the current resource is made.