listVehicleSensors: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Fix example) |
||
Line 11: | Line 11: | ||
|p1= vehicle: [[Object]] | |p1= vehicle: [[Object]] | ||
|r1= [[Array]] of [[String]]s | |r1= [[Array]] of [[Array]]s of [String]]s | ||
|x1= <sqf> | |x1= <sqf> | ||
Line 18: | Line 18: | ||
/* | /* | ||
e.g for a V44 Blackfish: | e.g for a V44 Blackfish: | ||
"ActiveRadarSensorComponent", | [ | ||
["IRSensorComponent", "IRSensorComponent"], | |||
["VisualSensorComponent", "VisualSensorComponent"], | |||
["ActiveRadarSensorComponent", "ActiveRadarSensorComponent"], | |||
["PassiveRadarSensorComponent", "PassiveRadarSensorComponent"], | |||
["LaserSensorComponent", "LaserSensorComponent"], | |||
["NVSensorComponent", "NVSensorComponent"] | |||
] | |||
*/ | */ | ||
</sqf> | </sqf> |
Revision as of 22:27, 20 March 2022
Description
- Description:
- Returns an array of the sensors in the given vehicle's config (configFile >> "CfgVehicles" >> vehicle >> "Components" >> "SensorsManagerComponent" >> "Components").
- Groups:
- Sensors
Syntax
- Syntax:
- listVehicleSensors vehicle
- Parameters:
- vehicle: Object
- Return Value:
- Array of Arrays of [String]]s
Examples
- Example 1:
- private _sensors = listVehicleSensors _v44blackfish; hint str _sensors; /* e.g for a V44 Blackfish: [ ["IRSensorComponent", "IRSensorComponent"], ["VisualSensorComponent", "VisualSensorComponent"], ["ActiveRadarSensorComponent", "ActiveRadarSensorComponent"], ["PassiveRadarSensorComponent", "PassiveRadarSensorComponent"], ["LaserSensorComponent", "LaserSensorComponent"], ["NVSensorComponent", "NVSensorComponent"] ] */
Additional Information
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