SetCameraViewDistance: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Sets the player's camera view distance.}} | ||
{{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__ |
Revision as of 19:29, 31 December 2019
Description
Sets the player's camera view distance.
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__