SetPlayerHeading: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetPlayerHeading(player, heading)}} {{FuncParameters}} {{FuncParam|player|__EDIT_ME__}} {{FuncPara..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Sets players heading (rotation)}} | ||
{{FuncSyntax|SetPlayerHeading(player, heading)}} | {{FuncSyntax|SetPlayerHeading(player, heading)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|player| | {{FuncParam|player|Player you want to set heading of}} | ||
{{FuncParam|heading| | {{FuncParam|heading|Angle (0-360) you want to set players heading to}} | ||
{{FuncReturnValue|__EDIT_ME__}} | {{FuncReturnValue|__EDIT_ME__}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
SetPlayerHeading(player, 95) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
__EDIT_ME__ | __EDIT_ME__ |
Revision as of 19:59, 13 November 2019
Description
Sets players heading (rotation)
Syntax
SetPlayerHeading(player, heading)
Parameters
- player
Player you want to set heading of - heading
Angle (0-360) you want to set players heading to
Return Value
- __EDIT_ME__
Example
SetPlayerHeading(player, 95)
See also
__EDIT_ME__