SetControllerOrientedMovement: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 6: Line 6:


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|bStatus|Boolean status}}
{{FuncParam|bEnable|'''true''' to enable}}


{{FuncReturnValue|Nothing}}
{{FuncReturnValue|Returns '''true''' on success.}}


== Example ==
== Example ==
<syntaxhighlight lang="Lua">
<syntaxhighlight lang="Lua">
-- code
SetControllerOrientedMovement(true)
</syntaxhighlight>
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
__EDIT_ME__

Revision as of 11:55, 10 January 2020

SetControllerOrientedMovement

Type: Function
Context: Client
Introduced: v1.0

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

Parameters

  • bEnable
    true to enable

Return Value

  • Returns true on success.

Example

SetControllerOrientedMovement(true)

See also

__EDIT_ME__