listVehicleSensors: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix example) |
No edit summary |
||
Line 30: | Line 30: | ||
|seealso= [[listRemoteTargets]] [[enableVehicleSensor]] [[isVehicleRadarOn]] [[isVehicleSensorEnabled]] | |seealso= [[listRemoteTargets]] [[enableVehicleSensor]] [[isVehicleRadarOn]] [[isVehicleSensorEnabled]] | ||
}} | |||
{{Note | |||
|user= Samatra | |||
|timestamp= 20240324124210 | |||
|text= First string is sensor class name, second string is <sqf inline>componentType</sqf> value from the class. Use first string for enable commands. | |||
}} | }} |
Revision as of 13:42, 24 March 2024
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
- Posted on Mar 24, 2024 - 12:42 (UTC)
- First string is sensor class name, second string is componentType value from the class. Use first string for enable commands.