Gameplay::getHeadingFromVector2D

From RAGE Multiplayer Wiki
Revision as of 11:28, 29 April 2024 by Shr0x (talk | contribs) (Created page with "{{ClientsideJsFunction}} {{JSContainer| Gets a heading in degrees between x and y points. ===Required Params=== *'''x:''' {{RageType|float}} *'''y:''' {{RageType|float}} ===Return value=== *''' {{RageType|float}} ''' ==Syntax== <syntaxhighlight lang="javascript"> mp.game.gameplay.getHeadingFromVector2D(x, y); </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> //todo </syntaxhighlight> }} ==See also== {{Gameplay_definition_c}} Category:Clientside API...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Client-Side
Function

 JavaScript



JavaScript Syntax

Gets a heading in degrees between x and y points.

Required Params

  • x: float
  • y: float

Return value

  • float

Syntax

mp.game.gameplay.getHeadingFromVector2D(x, y);

Example

//todo


See also