Squirrel/Client/Functions/Misc/GetGroundZLevel

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(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")
 
(GetGroundZLevel())
 
(2 intermediate revisions by one user not shown)
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 groun level is usually a solid object you can stand on
+
The ground level is usually a solid object closest to you that you can stand on.
 +
 
 +
 
 +
----
 +
 
 +
 
 +
'''Usage: '''
 +
 
 +
<code lang="squirrel">
 +
function onClientCommand( Command, Parameters )
 +
{
 +
  if(Command == "pos")Message("Your current Z position is " + FindLocalPlayer().Pos.z + " the ground level for your position is " + GetGroundZLevel() );
 +
}
 +
</code>

Latest revision as of 11:15, 29 August 2017


[edit] 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:

  1.  
  2. function onClientCommand( Command, Parameters )
  3. {
  4. if(Command == "pos")Message("Your current Z position is " + FindLocalPlayer().Pos.z + " the ground level for your position is " + GetGroundZLevel() );
  5. }
  6.  
Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox