HU/getCameraGoggleEffect: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 9: | Line 9: | ||
{{OOP||Camera.getGoggleEffect|goggleEffect|setCameraGoggleEffect}} | {{OOP||Camera.getGoggleEffect|goggleEffect|setCameraGoggleEffect}} | ||
===Returns=== | ===Returns=== | ||
* [[String]] indicating the current camera goggle effect. Their meanings can be seen below. | * [[HU/String]] indicating the current camera goggle effect. Their meanings can be seen below. | ||
{{Camera goggle modes}} | {{Camera goggle modes}} |
Revision as of 22:22, 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
- HU/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