GetCameraFieldOfView: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (fix rev)
(Updated the pagd)
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{client function}}
{{client function}}
{{New feature/item|3.0150|1.5|7285|This function returns the field of view of the ''dynamic camera'' as set by [[setCameraFieldOfView]].}}
{{Disabled|This function and its pair [[setCameraFieldOfView]] were disabled on r7327. See [https://github.com/multitheftauto/mtasa-blue/commit/2f892d649af212e0a998a78695c96c09e0ee03a0 the commit] for details.}}
 
{{New items|3.0150|1.5|This function returns the field of view of the ''dynamic camera'' as set by [[setCameraFieldOfView]].|7285}}
==Syntax==
==Syntax==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">

Revision as of 13:37, 11 July 2015

Dialog-warning.png Function has been disabled.

Reason/Note: This function and its pair setCameraFieldOfView were disabled on r7327. See the commit for details.


This function returns the field of view of the dynamic camera as set by setCameraFieldOfView.

Syntax

float getCameraFieldOfView ()

OOP Syntax Help! I don't understand this!

Note: This is under the static class Camera
Method: Camera.getFieldOfView(...)
Variable: .fov
Counterpart: setCameraFieldOfView


Returns

Returns one float - the field of view angle

Example

In this example, the field of view is output to the chat whenever the /getfov command is written

function getCamFOV()
    outputChatBox("The camera field of view is: " .. getCameraFieldOfView())
end
addCommandHandler("getfov", getCamFOV)

See Also