targetsQuery: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " | }}" to " }}") |
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
||
Line 33: | Line 33: | ||
|x2= Prioritise all known OPFOR targets and return targets less than 10 seconds old:<code>_targets = [[player]] [[targetsQuery]] [<nowiki/>[[objNull]], [[east]], "", [], 10];</code> | |x2= Prioritise all known OPFOR targets and return targets less than 10 seconds old:<code>_targets = [[player]] [[targetsQuery]] [<nowiki/>[[objNull]], [[east]], "", [], 10];</code> | ||
| [[targetsAggregate]], [[targetKnowledge]], [[knowsAbout]], [[forgetTarget]] | |seealso= [[targetsAggregate]], [[targetKnowledge]], [[knowsAbout]], [[forgetTarget]] | ||
}} | }} | ||
Revision as of 00:07, 17 February 2021
Description
- Description:
- Description needed
- Groups:
- Object Detection
Syntax
- Syntax:
- Syntax needed
- Parameters:
- enquirer: Object - For whom the query will be made
- [targetIgnore, targetSide, targetType, targetPosition, targetMaxAge]: Array - Query
- targetIgnore: Object - Target object to exclude from results. objNull - return every target
- targetSide: Side - Desired side of the target. sideUnknown - any side
- targetType: String - Desired target typeOf. "" - any type
- targetPosition: Array - Desired target position in format of Position2D or Position3D (only [x,y] is considered). Position tolerance is 200m from the actual position of the target. [] - any position
- targetMaxAge: Number - Desired max age of the target. This will limit returned results to the targets younger than specified age. 0 - any age
- Return Value:
- Return value needed
Examples
- Example 1:
- Return all known targets for player:
_targets = player targetsQuery [objNull, sideUnknown, "", [], 0];
- Example 2:
- Prioritise all known OPFOR targets and return targets less than 10 seconds old:
_targets = player targetsQuery [objNull, east, "", [], 10];
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