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..." |
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| | {{FuncDescription|Sets the player's camera view distance. The default camera view distance for players on-foot is 350.0 units.}} | ||
{{FuncSyntax| | {{FuncSyntax|SetCameraViewDistance(distance)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|distance| | {{FuncParam|distance|The distance}} | ||
{{FuncReturnValue| | {{FuncReturnValue|This function returns '''true'''.}} | ||
== Example == | == Example == | ||
<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
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__