listVehicleSensors: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 5: | Line 5: | ||
|gr1= Sensors | |gr1= Sensors | ||
|descr= Returns an array of the sensors in the given vehicle's config ( | |descr= Returns an array of the sensors in the given vehicle's config (configFile >> "CfgVehicles" >> ''vehicle'' >> "Components" >> "SensorsManagerComponent" >> "Components"). | ||
|s1= [[listVehicleSensors]] vehicle | |s1= [[listVehicleSensors]] vehicle | ||
Line 13: | Line 13: | ||
|r1= [[Array]] of [[String]]s | |r1= [[Array]] of [[String]]s | ||
|x1= < | |x1= <sqf> | ||
private _sensors = listVehicleSensors _v44blackfish; | |||
hint str _sensors; | |||
/* | |||
e.g for a V44 Blackfish: | |||
"ActiveRadarSensorComponent", | |||
"IRSensorComponent", | |||
"LaserSensorComponent", | |||
"NVSensorComponent", | |||
"VisualSensorComponent" | |||
*/ | |||
</sqf> | |||
|seealso= [[listRemoteTargets]] [[enableVehicleSensor]] [[isVehicleRadarOn]] [[isVehicleSensorEnabled]] | |seealso= [[listRemoteTargets]] [[enableVehicleSensor]] [[isVehicleRadarOn]] [[isVehicleSensorEnabled]] | ||
}} | }} |
Revision as of 20:43, 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 Strings
Examples
- Example 1:
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