God Mode
by Germain Bataille · in Torque Game Engine · 04/12/2005 (10:44 am) · 3 replies
Hi,
I'm new with this engine... The first thing I would like to do is the possibility to go in god view after pressing tab for example...
There is a link a user told me at : http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5471
I tried 3 times to copy and paste the code in the program and it's not working...
I have the AdvanceCamera class in my code and I copied all the scripts...
If you already done this, could you please send me the .cs files please?
GB
I'm new with this engine... The first thing I would like to do is the possibility to go in god view after pressing tab for example...
There is a link a user told me at : http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5471
I tried 3 times to copy and paste the code in the program and it's not working...
I have the AdvanceCamera class in my code and I copied all the scripts...
If you already done this, could you please send me the .cs files please?
GB
About the author
#2
In wich script should I put the
%this.advCamera.setGodViewMode();?
04/12/2005 (11:38 am)
Sorry, I was talking about God View.In wich script should I put the
%this.advCamera.setGodViewMode();?
#3
What was missing is :
%this.advCamera.setPlayerObject(%player);
%this.setCameraObject(%this.advCamera);
%this.advCamera.setGodViewMode();
at the end of GameConnection::onClientEnterGame(%this)
Germ
04/14/2005 (7:28 am)
That's working now...What was missing is :
%this.advCamera.setPlayerObject(%player);
%this.setCameraObject(%this.advCamera);
%this.advCamera.setGodViewMode();
at the end of GameConnection::onClientEnterGame(%this)
Germ
Associate David Montgomery-Blake
David MontgomeryBlake
Well, I've never thought to do it, but if you create a global GodMode variable and ignore any player damage when it's active, you'll have God Mode.
If you're looking for God View, then take the advanced camera resource, add it into your project and recompile. Then add in the other relevant code from the resource. After that, use the script API ( %this.advCamera.setGodViewMode();) to setup the camera.