SetCameraLocation: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetPlayerCameraLocation(x, y, z)}} {{FuncParameters}} {{FuncParam|x|__EDIT_ME__}} {{FuncParam|y|__..."
 
28days (talk | contribs)
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Set the camera location.}}


{{FuncSyntax|SetPlayerCameraLocation(x, y, z)}}
{{FuncSyntax|SetCameraLocation(x, y, z [, bWorldSpace])}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|x|__EDIT_ME__}}
{{FuncParam|x|The X axis}}
{{FuncParam|y|__EDIT_ME__}}
{{FuncParam|y|The Y axis}}
{{FuncParam|z|__EDIT_ME__}}
{{FuncParam|z|The Z axis}}
{{FuncParamOptional|bWorldSpace|'''true''' for world space, '''false''' for relative location.}}


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


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
SetCameraLocation(0.0, 0.0, 0.0, true)
</syntaxhighlight>


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

Latest revision as of 20:19, 18 December 2019

SetCameraLocation

Type: Function
Context: Client
Introduced: v1.0

Description

Set the camera location.

Syntax

SetCameraLocation(x, y, z [, bWorldSpace])

Parameters

  • x
    The X axis
  • y
    The Y axis
  • z
    The Z axis
  • bWorldSpace (optional)
    true for world space, false for relative location.

Return Value

  • Returns true on success.

Example

SetCameraLocation(0.0, 0.0, 0.0, true)

See also