Est GetAngleToPoint

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

Contents

Description

  • Returns the angle needed to make a user look at a point

Parameters

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

Example


// Example comming soon 

Notes

pitch is verical and yaw is horizontal. Roll is used in the drunk punishment. I'm guessing if it's out of 360 degrees setting it to 180 would make everything upside down.

See Also

blog comments powered by Disqus