GetPlayerHeading: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server & Client|1.0}} | {{Info|Function|Server & Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Get the specified player's heading (rotation).}} | ||
{{FuncSyntax|GetPlayerHeading(player)}} | {{FuncSyntax|GetPlayerHeading(player)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|player| | {{FuncParam|player|The player identifier.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|This function returns heading in float.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang='Lua'> | |||
local heading = GetPlayerHeading(playerId) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{PlayerFunctions}} |
Revision as of 17:17, 16 January 2020
Description
Get the specified player's heading (rotation).
Syntax
GetPlayerHeading(player)
Parameters
- player
The player identifier.
Return Value
- This function returns heading in float.
Example
local heading = GetPlayerHeading(playerId)