getSensorTargets: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page creation) |
Lou Montana (talk | contribs) m (Fix return value type) |
||
Line 16: | Line 16: | ||
|p1= vehicle: [[Object]] - the sensors-equipped vehicle | |p1= vehicle: [[Object]] - the sensors-equipped vehicle | ||
|r1= [[Array]] of [[Array]]s - format [ | |r1= [[Array]] of [[Array]]s - format [target, type, relationship, sensor]: | ||
* target: [[Object]] | |||
* | |||
* type: [[String]], can be one of: | * type: [[String]], can be one of: | ||
** "unknown" | ** "unknown" | ||
Line 27: | Line 26: | ||
** "irTarget" | ** "irTarget" | ||
** "radarTarget" | ** "radarTarget" | ||
* | * relationship: [[String]], can be one of: | ||
** "friendly" | |||
** "enemy" | |||
** "destroyed" | |||
** "unknown" | |||
* sensor: [[String]], can be one of: | * sensor: [[String]], can be one of: | ||
** "ir" | ** "ir" | ||
Line 37: | Line 40: | ||
** "visual" | ** "visual" | ||
** "datalink" | ** "datalink" | ||
|x1= <code>[[private]] _radarTargets = [[getSensorTargets]] [[vehicle]] [[player]];</code> | |x1= <code>[[private]] _radarTargets = [[getSensorTargets]] [[vehicle]] [[player]];</code> |
Revision as of 12:43, 6 June 2021
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: String, can be one of:
- "ir"
- "nv"
- "laser"
- "activeradar"
- "passiveradar"
- "man"
- "visual"
- "datalink"
Examples
- Example 1:
private _radarTargets = getSensorTargets vehicle player;
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