SetCameraLocation: Difference between revisions
From Onset Developer Wiki
m BlueMountains moved page SetPlayerCameraLocation to SetCameraLocation |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Set the camera location.}} | ||
{{FuncSyntax| | {{FuncSyntax|SetCameraLocation(x, y, z [, bWorldSpace])}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|x| | {{FuncParam|x|The X axis}} | ||
{{FuncParam|y| | {{FuncParam|y|The Y axis}} | ||
{{FuncParam|z| | {{FuncParam|z|The Z axis}} | ||
{{FuncParamOptional|bWorldSpace|'''true''' for world space, '''false''' for relative location.}} | |||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true''' on success.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
SetCameraLocation(0.0, 0.0, 0.0, true) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{CameraFunctions}} |
Latest revision as of 20:19, 18 December 2019
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
- StartCameraFade
- StopCameraFade
- PlayCameraShake
- StopCameraShake
- SetCameraShakeLocation
- SetCameraShakeRotation
- SetCameraShakeFOV
- GetScreenSize
- SetCameraLocation
- GetCameraLocation
- SetCameraRotation
- GetCameraRotation
- GetCameraForwardVector
- GetCameraRightVector
- GetCameraUpVector
- GetInputAxisValue
- SetCameraViewDistance
- GetCameraViewDistance