Gameplay::getHeadingFromVector2d: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
dx = x1 - x2<br>dy = y1 - y2
dx = x1 - x2<br>dy = y1 - y2
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">gameplay.getHeadingFromVector2d(dx, dy);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.gameplay.getHeadingFromVector2d(dx, dy);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''dx:''' float
*'''dx:''' float
Line 9: Line 9:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Gameplay_function_c}}
{{Gameplay_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:06, 6 May 2017

dx = x1 - x2
dy = y1 - y2

Syntax

mp.game.gameplay.getHeadingFromVector2d(dx, dy);

Required Arguments

  • dx: float
  • dy: float

Return value

  • float

Example

// todo

See also

Template:Gameplay s function c