SetControllerOrientedMovement: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetControllerOrientedMovement}} {{FuncParameters}} {{FuncParam|bStatus|Boolean status}} {{FuncRet..." |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Makes the player mesh to control like in first person. Meaning when you press 'S' the character won't turn backwards but rather just walk backwards.}} | ||
{{FuncSyntax|SetControllerOrientedMovement}} | {{FuncSyntax|SetControllerOrientedMovement(bEnable)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam| | {{FuncParam|bEnable|'''true''' to enable}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true''' on success.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | <syntaxhighlight lang="Lua"> | ||
SetControllerOrientedMovement(true) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
__EDIT_ME__ | __EDIT_ME__ |
Latest revision as of 11:57, 10 January 2020
Description
Makes the player mesh to control like in first person. Meaning when you press 'S' the character won't turn backwards but rather just walk backwards.
Syntax
SetControllerOrientedMovement(bEnable)
Parameters
- bEnable
true to enable
Return Value
- Returns true on success.
Example
SetControllerOrientedMovement(true)
See also
__EDIT_ME__