Squirrel/Client/Functions/Misc/GetGroundZLevel

From Liberty Unleashed Wiki
Revision as of 11:15, 29 August 2017 by ClashJTM (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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