Gameplay::getHeadingFromVector2d: Difference between revisions
(yay) |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
{{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== | ==Syntax== | ||
<syntaxhighlight lang="javascript">gameplay.getHeadingFromVector2d( | <syntaxhighlight lang="javascript"> | ||
mp.game.gameplay.getHeadingFromVector2d(x, y); | |||
</syntaxhighlight> | |||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | //todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | |||
==See also== | ==See also== | ||
{{ | {{Gameplay_definition_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Latest revision as of 12:06, 29 April 2024
Client-Side Function
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