Description
Return a list of all existing cameras.
Syntax
allCameras
Returns: Array of Arrays with [camera, r2tInfos, isPrimary, effectName, viewMode, TIindex]
- camera: Object - the camera itself (see camCreate)
- r2tInfos: Array of Arrays with [r2tName, r2tEffectName, ppEffectType, TIindex]
- r2tName: String - the camera's RTT name (see cameraEffect)
- r2tEffectName: String - see cameraEffect for possible values
- ppEffectType: String - one of
Normal,NightVision,Thermal,Colors,Mirror,ChromAberorFilmGrain - TIIndex: Number - see setCamUseTI for possible values
- isPrimary: Boolean - whether or not this camera is the current main one
- effectName: String - (Optional, only available if isPrimary is true) see cameraEffect for possible values
- viewMode: Number - (Optional, only available if isPrimary is true) 0 = normal, 1 = NVG, 2 = TI, 3 = NVG + TI
- TIIndex: Number - (Optional, only available if isPrimary is true) see setCamUseTI for possible values
Examples
Example 1
{
params ["_camera", "_r2tInfos", "_isPrimary", "_ppEffectName", "_viewMode", "_TIindex"];
{
params["_r2tName", "_ppEffectName", "_ppEffectType", "_TIindex"];
} forEach _r2tInfos;
} forEach allCameras;
Example 2
private _allCamerasInfo = allCameras;
{
params ["_camera", "", "_isPrimary"];
if (!_isPrimary) then { camDestroy _camera };
} forEach _allCamerasInfo;