targets: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\|arguments= * " to " ") |
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
||
Line 33: | Line 33: | ||
|x3= <code>_targets = _unit [[targets]] []; //all targets</code> | |x3= <code>_targets = _unit [[targets]] []; //all targets</code> | ||
| [[nearTargets]], [[targetsQuery]], [[reveal]], [[side]] | |seealso= [[nearTargets]], [[targetsQuery]], [[reveal]], [[side]] | ||
}} | }} | ||
Revision as of 00:08, 17 February 2021
Description
- Description:
- Description needed
- Groups:
- Object Detection
Syntax
- Syntax:
- Syntax needed
- Parameters:
- unit: Object - unit which target knowledge is retrieved
- [enemyOnly, maxDistance, sides, maxAge, alternateCenter]: Array
- enemyOnly (Optional): Boolean - true to include only enemy targets, false to include all targets
- maxDistance (Optional): Number - max. distance based on target's expected position (distance is measured in 2D); use 0 to ignore the maxDistance filter
- sides (Optional): Array - array of accepted sides; use [] to ignore the side filter
- maxAge (Optional): Number - max. target age, targets that are known to unit for longer then maxAge are ignored; use 0 to ignore the maxAge filter
- alternateCenter (Optional): Array - alternate (2D or 3D) position used for distance check (distance is measured in 2D); if not specified unit position is being used
- Return Value:
- Return value needed
Examples
- Example 1:
_targets = _unit targets [false, 300, [east,sideEnemy]]; //all targets of east or renegade side in 300m
- Example 2:
_targets = _unit targets [true, 300]; //enemy targets in 300m
- Example 3:
_targets = _unit targets []; //all targets
Additional Information
- See also:
- nearTargetstargetsQueryrevealside
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