HU/getCameraGoggleEffect
Jump to navigation
Jump to search
This function returns what goggle effect is currently affecting the camera.
Szintaxis
string getCameraGoggleEffect ( )
OOP Syntax Help! I don't understand this!
- Method: Camera.getGoggleEffect(...)
- Variable: .goggleEffect
- Counterpart: setCameraGoggleEffect
Visszatérési érték
- String indicating the current camera goggle effect. Their meanings can be seen below.
- normal: No camera goggle effect
- nightvision: Nightvision camera
- thermalvision: Infrared camera
Példa
Ez a pálda egy parancsot ad a nightvision effect engedélyezéséhez, vagy letiltásához.
function nightvision() if (getCameraGoggleEffect() == "normal") then setCameraGoggleEffect("nightvision") elseif (getCameraGoggleEffect() == "nightvision") then setCameraGoggleEffect("normal") end end addCommandHandler("nightvision", nightvision)
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