HU/getCameraGoggleEffect: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function}} This function returns what goggle effect is currently affecting the camera. ==Syntax== <syntaxhighlight lang="lua"> string getCameraGoggleEffect...") |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client function}} | {{Client function hu}} | ||
This function returns what goggle effect is currently affecting the camera. | This function returns what goggle effect is currently affecting the camera. | ||
Line 28: | Line 28: | ||
==See Also== | ==See Also== | ||
{{Client camera functions}} | {{Client camera functions hu}} | ||
[[en:getCameraGoggleEffect]] | [[en:getCameraGoggleEffect]] |
Revision as of 13:15, 21 August 2018
This function returns what goggle effect is currently affecting the camera.
Syntax
string getCameraGoggleEffect ( )
OOP Syntax Help! I don't understand this!
- Method: Camera.getGoggleEffect(...)
- Variable: .goggleEffect
- Counterpart: setCameraGoggleEffect
Returns
- String indicating the current camera goggle effect. Their meanings can be seen below.
- normal: No camera goggle effect
- nightvision: Nightvision camera
- thermalvision: Infrared camera
Example
This example adds a command to enable or disable the nightvision effect.
function nightvision() if (getCameraGoggleEffect() == "normal") then setCameraGoggleEffect("nightvision") elseif (getCameraGoggleEffect() == "nightvision") then setCameraGoggleEffect("normal") end end addCommandHandler("nightvision", nightvision)
See Also
- 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