Est GetViewCoord

From EventScripts Community Encyclopedia
Syntax: est_GetViewCoord <identifier> <return x> <return y> <return z>
Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Contents

Description

  • Returns the coordinates of the point the player is looking at

Parameters

  • identifier - The identifier must be a players:
    • userid
    • steamid
    • username - Partial or full name
  • return x - X coordinate
  • return y - Y coordinate
  • return z - Z coordinate

Example


event player_say
{
	if (event_var(text) == myview) do
	{
		es_xset x 0
		es_xset y 0
		es_xset z 0
		es est_GetViewCoord event_var(userid) x y z
		es_tell event_var(userid) Your looking at Postion: X: server_var(x) Y: server_var(y) Z: server_var(z)
	}
}

Notes

  • None

See Also

blog comments powered by Disqus