listVehicleSensors: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{DISPLAYTITLE:listVehicleSensors}}
{{DISPLAYTITLE:listVehicleSensors}}
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________
| arma3 |= Game name
| arma3 |= Game name
| 1.72 |Game Version=
| 1.72 |Game Version=


|gr1= Sensors |GROUP1=
|gr1= Sensors |GROUP1=
____________________________________________________________________________________________


| Returns an array of the sensors in the given vehicle's config (configfile >> CfgVehicles >> vehicle >> Components >> SensorsManagerComponent >> Components). |DESCRIPTION=
| Returns an array of the sensors in the given vehicle's config (configfile >> CfgVehicles >> vehicle >> Components >> SensorsManagerComponent >> Components). |DESCRIPTION=
____________________________________________________________________________________________


| '''listVehicleSensors''' vehicle |SYNTAX=
| '''listVehicleSensors''' vehicle |SYNTAX=
Line 16: Line 13:


| [[Array]] of [[String]]s |RETURNVALUE=
| [[Array]] of [[String]]s |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>_sensors = [[listVehicleSensors]] ([[vehicle]] [[player]]);
|x1= <code>_sensors = [[listVehicleSensors]] ([[vehicle]] [[player]]);
[[hint]] [[str]] _sensors;</code> |EXAMPLE1=
[[hint]] [[str]] _sensors;</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[listRemoteTargets]], [[enableVehicleSensor]], [[isVehicleRadarOn]], [[isVehicleSensorEnabled]] |SEEALSO=
| [[listRemoteTargets]], [[enableVehicleSensor]], [[isVehicleRadarOn]], [[isVehicleSensorEnabled]] |SEEALSO=

Revision as of 01:59, 17 January 2021


Hover & click on the images for description

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:
_sensors = listVehicleSensors (vehicle player); hint str _sensors;

Additional Information

See also:
listRemoteTargetsenableVehicleSensorisVehicleRadarOnisVehicleSensorEnabled

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

Notes

Bottom Section