SetCameraViewDistance: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetPlayerCameraArmLength(distance)}} {{FuncParameters}} {{FuncParam|distance|__EDIT_ME__}} {{Func..."
 
Chloe (talk | contribs)
m Mentions the default on-foot distance.
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Sets the player's camera view distance. The default camera view distance for players on-foot is 350.0 units.}}


{{FuncSyntax|SetPlayerCameraArmLength(distance)}}
{{FuncSyntax|SetCameraViewDistance(distance)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|distance|__EDIT_ME__}}
{{FuncParam|distance|The distance}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|This function returns '''true'''.}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
SetCameraViewDistance(500.0)
-- Set the camera view distance 500.0 units away from the ped.
</syntaxhighlight>


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

Latest revision as of 22:21, 15 January 2020

SetCameraViewDistance

Type: Function
Context: Client
Introduced: v1.0

Description

Sets the player's camera view distance. The default camera view distance for players on-foot is 350.0 units.

Syntax

SetCameraViewDistance(distance)

Parameters

  • distance
    The distance

Return Value

  • This function returns true.

Example

SetCameraViewDistance(500.0)
-- Set the camera view distance 500.0 units away from the ped.

See also

__EDIT_ME__