allCameras: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
|r1= [[Array]] of [[Array]]s format [camera, r2tInfos, isPrimary, effectName, viewMode, TIindex] | |r1= [[Array]] of [[Array]]s format [camera, r2tInfos, isPrimary, effectName, viewMode, TIindex] | ||
* camera: [[Object]] - the camera itself (see [[camCreate]]) | * camera: [[Object]] - the camera itself (see [[camCreate]]) | ||
* r2tInfos: [[Array]] of [[Array]]s format [r2tName, | * r2tInfos: [[Array]] of [[Array]]s format [r2tName, r2tEffectName, ppEffectType, TIindex] where: | ||
** r2tName: [[String]] - the camera's RTT name (see [[cameraEffect]]) | ** r2tName: [[String]] - the camera's RTT name (see [[cameraEffect]]) | ||
** | ** r2tEffectName: [[String]] - see [[cameraEffect]] for possible values | ||
** ppEffectType: [[String]] - one of {{hl|Normal}}, {{hl|NightVision}}, {{hl|Thermal}}, {{hl|Colors}}, {{hl|Mirror}}, {{hl|ChromAber}} or {{hl|FilmGrain}} | ** ppEffectType: [[String]] - one of {{hl|Normal}}, {{hl|NightVision}}, {{hl|Thermal}}, {{hl|Colors}}, {{hl|Mirror}}, {{hl|ChromAber}} or {{hl|FilmGrain}} | ||
** TIIndex: [[Number]] - see [[setCamUseTI]] for possible values | ** TIIndex: [[Number]] - see [[setCamUseTI]] for possible values | ||
Line 24: | Line 24: | ||
* TIIndex: [[Number]] - (Optional, only available if ''isPrimary'' is [[true]]) see [[setCamUseTI]] for possible values | * TIIndex: [[Number]] - (Optional, only available if ''isPrimary'' is [[true]]) see [[setCamUseTI]] for possible values | ||
|x1= <sqf>{ | |x1= <sqf> | ||
{ | |||
params ["_camera", "_r2tInfos", "_isPrimary", "_ppEffectName", "_viewMode", "_TIindex"]; | params ["_camera", "_r2tInfos", "_isPrimary", "_ppEffectName", "_viewMode", "_TIindex"]; | ||
{ | { | ||
Line 37: | Line 38: | ||
params ["_camera", "", "_isPrimary"]; | params ["_camera", "", "_isPrimary"]; | ||
if (!_isPrimary) then { camDestroy _camera }; | if (!_isPrimary) then { camDestroy _camera }; | ||
} forEach _allCamerasInfo;</sqf> | } forEach _allCamerasInfo; | ||
</sqf> | |||
|seealso= [[camCreate]] [[camDestroy]] | |seealso= [[camCreate]] [[camDestroy]] | ||
}} | }} |
Revision as of 21:51, 2 September 2024
Description
- Description:
- Return a list of all existing cameras.
- Groups:
- Camera Control
Syntax
- Syntax:
- allCameras
- Return Value:
- Array of Arrays format [camera, r2tInfos, isPrimary, effectName, viewMode, TIindex]
- camera: Object - the camera itself (see camCreate)
- r2tInfos: Array of Arrays format [r2tName, r2tEffectName, ppEffectType, TIindex] where:
- 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, ChromAber or FilmGrain
- 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:
- Example 2:
Additional Information
- See also:
- camCreate camDestroy
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note