HU/getCameraFieldOfView: Difference between revisions
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
** "vehicle_max": the max the field of view can go to when the vehicle is moving at a high speed (must be higher than "vehicle") | ** "vehicle_max": the max the field of view can go to when the vehicle is moving at a high speed (must be higher than "vehicle") | ||
=== | ===Visszatérési érték=== | ||
Visszatérési értéke egy float - a látómező szöge | |||
==Example== | ==Example== |
Revision as of 14:54, 13 August 2018
This function returns the field of view of the dynamic camera as set by setCameraFieldOfView.
Syntax
float getCameraFieldOfView ( string cameraMode )
OOP Syntax Help! I don't understand this!
- Method: Camera.getFieldOfView(...)
- Variable: .fov
- Counterpart: setCameraFieldOfView
Required Arguments
- cameraMode: the camera mode to get the field of view of
- "player": whilst walking/running
- "vehicle": whilst in vehicle
- "vehicle_max": the max the field of view can go to when the vehicle is moving at a high speed (must be higher than "vehicle")
Visszatérési érték
Visszatérési értéke egy float - a látómező szöge
Example
Ebben a példában megjelenítni a chatban a látómezőt, amikor a /getfov parancsot beírják
function getCamFOV() outputChatBox("The camera field of view for 'player walking/running' is: " .. getCameraFieldOfView("player")) end addCommandHandler("getfov", getCamFOV)
Lásd még
- HU/fadeCamera
- HU/getCamera
- HU/getCameraClip
- HU/getCameraFieldOfView
- HU/getCameraGoggleEffect
- HU/getCameraInterior
- HU/getCameraMatrix
- HU/getCameraShakeLevel
- HU/getCameraTarget
- HU/getCameraViewMode
- HU/setCameraClip
- HU/setCameraFieldOfView
- HU/setCameraGoggleEffect
- HU/setCameraInterior
- HU/setCameraMatrix
- HU/setCameraShakeLevel
- HU/setCameraTarget
- HU/setCameraViewMode
Fordította
- Surge