Squirrel/Client/Functions/Misc/GetGroundZLevel
From Liberty Unleashed Wiki
(Difference between revisions)
(Created page with "GetGroundZLevel() Gets the Z position of the ground, basically the ground level. The groun level is usually a solid object you can stand on") |
|||
Line 1: | Line 1: | ||
− | GetGroundZLevel() | + | |
+ | |||
+ | == '''GetGroundZLevel()''' == | ||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
Gets the Z position of the ground, basically the ground level. | Gets the Z position of the ground, basically the ground level. | ||
− | The | + | The ground level is usually a solid object closest to you that you can stand on. |
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | '''Usage: ''' | ||
+ | |||
+ | |||
+ | function onClientCommand( Command, Parameters ) | ||
+ | { | ||
+ | if(Command == "pos")Message("Your current Z position is " + FindLocalPlayer().Pos.z + " the ground level for your position is " + GetGroundZLevel() ); | ||
+ | } |
Revision as of 11:12, 29 August 2017
GetGroundZLevel()
Gets the Z position of the ground, basically the ground level.
The ground level is usually a solid object closest to you that you can stand on.
Usage:
function onClientCommand( Command, Parameters )
{
if(Command == "pos")Message("Your current Z position is " + FindLocalPlayer().Pos.z + " the ground level for your position is " + GetGroundZLevel() );
}