SetCameraViewDistance: Difference between revisions
From Onset Developer Wiki
No edit summary |
m Mentions the default on-foot distance. |
||
(One intermediate revision by one other user 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|SetCameraViewDistance(distance)}} | {{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__