Reference commands
by arteria3d · in Torque Game Engine · 12/11/2004 (1:52 pm) · 2 replies
Is there no where, where i can find a reference guide as to list every torque script command - its meaning and a simple example of how each command works?
I have printed the main manual out,and that does reference commands to an extent - but i find it doesnt answer many of my questions and cos i dont have a direct reference of each command, i am finding my progress with this engine a lot slower than when i learned blitz/bd pro etc. Db Pro came with a fantastic reference manual detailing every command - and its use.
Anyone help?
I have printed the main manual out,and that does reference commands to an extent - but i find it doesnt answer many of my questions and cos i dont have a direct reference of each command, i am finding my progress with this engine a lot slower than when i learned blitz/bd pro etc. Db Pro came with a fantastic reference manual detailing every command - and its use.
Anyone help?
About the author
Owner of uk based Ltd company ArteriaMediaLtd. with a trading name of Arteria3d Website;arteria3d.com
#2
i just noticed a command :
getTerrainHeight(Point2I pos)
In Db Pro i used to use a very similar command to determine firstly if the player was in water, - which would simply mean that the player's 'z' coord was lower than a certain threshold. If so - then the camera's z movement would become unrestricted - therefore allowing him to freely roam in the water and swim. When he touched the water-bed he would again become glued to the floor and be able to move about. Also when the player's Z position was 1 or 2 positions less than the shoreline - he would come out of the water again and stand on the terrain - and i can use this command hopefully in a similar way.
However - what command, or code would actually allow me to not set the player to the terrain floor? so in affect when looking up and pressing the W key he would go up!
Hope this make sense
Steve
12/11/2004 (2:15 pm)
THANKS for that mate.i just noticed a command :
getTerrainHeight(Point2I pos)
In Db Pro i used to use a very similar command to determine firstly if the player was in water, - which would simply mean that the player's 'z' coord was lower than a certain threshold. If so - then the camera's z movement would become unrestricted - therefore allowing him to freely roam in the water and swim. When he touched the water-bed he would again become glued to the floor and be able to move about. Also when the player's Z position was 1 or 2 positions less than the shoreline - he would come out of the water again and stand on the terrain - and i can use this command hopefully in a similar way.
However - what command, or code would actually allow me to not set the player to the terrain floor? so in affect when looking up and pressing the W key he would go up!
Hope this make sense
Steve
Torque 3D Owner Stefan Rampp
www.garagegames.com/downloads/TGE_Console_Cmds.rtf