GetCameraGoggleEffect: Difference between revisions
Jump to navigation
Jump to search
OpenIDUser55 (talk | contribs) No edit summary |
(OOP) |
||
Line 7: | Line 7: | ||
string getCameraGoggleEffect ( ) | string getCameraGoggleEffect ( ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||Camera.getGoggleEffect|goggleEffect|setCameraGoggleEffect}} | |||
===Returns=== | ===Returns=== | ||
* [[String]] indicating the current camera goggle effect. Their meanings can be seen below. | |||
{{Camera goggle modes}} | {{Camera goggle modes}} |
Revision as of 21:25, 5 October 2014
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
- getCamera
- getCameraClip
- getCameraFieldOfView
- getCameraGoggleEffect
- getCameraViewMode
- setCameraClip
- setCameraFieldOfView
- setCameraGoggleEffect
- setCameraViewMode
- Shared
- fadeCamera
- getCameraInterior
- getCameraMatrix
- getCameraTarget
- setCameraInterior
- setCameraMatrix
- setCameraTarget