HU/setCameraGoggleEffect
From Multi Theft Auto: Wiki
This function allows you to set the camera's current goggle effect. This means you can activate nightvision or infrared effects by script
Syntax
bool setCameraGoggleEffect ( string goggleEffect [, bool noiseEnabled = true ] )
OOP Syntax Help! I don't understand this!
- Method: Camera.setGoggleEffect(...)
- Variable: .goggleEffect
- Counterpart: getCameraGoggleEffect
Required Arguments
- goggleEffect: the goggle effect you wish to set
- normal: No camera goggle effect
- nightvision: Nightvision camera
- thermalvision: Infrared camera
- noiseEffect: whether or not there should be a fuzzy noise effect
Returns
- true if the effect was set correctly.
- false otherwise.
Example
function nightvision() local effect = (getCameraGoggleEffect() == "normal") and "nightvision" or "normal" setCameraGoggleEffect(effect) 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