getSensorTargets: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Fix return value type) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.06 | |version1= 2.06 | ||
|arg= local | |arg= local | ||
Line 16: | Line 14: | ||
|p1= vehicle: [[Object]] - the sensors-equipped vehicle | |p1= vehicle: [[Object]] - the sensors-equipped vehicle | ||
|r1= [[Array]] of [[Array]]s | |r1= [[Array]] of [[Array]]s format [<nowiki/>[target, type, relationship, sensor], ...]: | ||
* target: [[Object]] | * target: [[Object]] | ||
* type: [[String]] | * type: [[String]] - can be one of: | ||
** "unknown" | ** "unknown" | ||
** "footmobile" | ** "footmobile" | ||
Line 26: | Line 24: | ||
** "irTarget" | ** "irTarget" | ||
** "radarTarget" | ** "radarTarget" | ||
* relationship: [[String]] | * relationship: [[String]] - can be one of: | ||
** "friendly" | ** "friendly" | ||
** "enemy" | ** "enemy" | ||
** "destroyed" | ** "destroyed" | ||
** "unknown" | ** "unknown" | ||
* sensor: [[String]] | * sensor: [[Array]] of [[String]]s - among the following values: | ||
** "ir" | ** "ir" | ||
** "nv" | ** "nv" | ||
Line 40: | Line 38: | ||
** "visual" | ** "visual" | ||
** "datalink" | ** "datalink" | ||
|x1= <sqf> | |||
|x1= < | private _radarTargets = getSensorTargets vehicle player; | ||
/* | |||
returns e.g | |||
[ | |||
[O Alpha 1-3:1, "air", "unknown", ["ir", "activeradar", "visual"]], | |||
[17750112040# 163957: apc_tracked_01_aa_f.p3d, "ground", "unknown", ["datalink"]] | |||
] | |||
*/ | |||
</sqf> | |||
|seealso= [[getSensorThreats]] [[listVehicleSensors]] [[listRemoteTargets]] | |seealso= [[getSensorThreats]] [[listVehicleSensors]] [[listRemoteTargets]] | ||
}} | }} |
Latest revision as of 18:07, 5 May 2022
Description
- Description:
- Returns vehicle sensors' potential targets.
- Groups:
- Sensors
Syntax
- Syntax:
- getSensorTargets vehicle
- Parameters:
- vehicle: Object - the sensors-equipped vehicle
- Return Value:
- Array of Arrays format [[target, type, relationship, sensor], ...]:
- target: Object
- type: String - can be one of:
- "unknown"
- "footmobile"
- "air"
- "ground"
- "laserTarget"
- "irTarget"
- "radarTarget"
- relationship: String - can be one of:
- "friendly"
- "enemy"
- "destroyed"
- "unknown"
- sensor: Array of Strings - among the following values:
- "ir"
- "nv"
- "laser"
- "activeradar"
- "passiveradar"
- "man"
- "visual"
- "datalink"
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