Es.getplayerlocation

From EventScripts Community Encyclopedia



Method: getplayerlocation

Module: es
Class: (no class)
EventScripts version: 2.0

Method Overview

Table of Contents

Contents


Description

Obtains the current coordinates of a given player and returns the X, Y, and Z coordinates as a tuple of floating point numbers.

Arguments


Examples

x,y,z = es.getplayerlocation(userid)

Notes

  • Coordinates are always taken at the bottom of the player's model, rather than the middle or the player's perspective.
  • This can be used to track dead players as well. The coordinates of dead players are tied to the coordinates of the person they are spectating when in first- and third-person views, and are independent when in free-look mode.

See Also

blog comments powered by Disqus