targetKnowledge: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(9 intermediate revisions by 3 users not shown) | |||
Line 4: | Line 4: | ||
|version1= 1.50 | |version1= 1.50 | ||
|gr1= Object | |gr1= Object Detection | ||
|descr= Returns unit's knowledge about target. | |descr= Returns unit's knowledge about target. | ||
Line 22: | Line 22: | ||
* errorMargin: [[Number]] - position error | * errorMargin: [[Number]] - position error | ||
* position: [[Array]] - target position in format [[Position]] | * position: [[Array]] - target position in format [[Position]] | ||
* {{GVI|arma3|2.18}}: [[Boolean]] - target is ignored ([[ignoreTarget]]) | |||
|x1= < | |x1= <sqf> | ||
_allInfo | private _allInfo = _soldierOne targetKnowledge _jeepOne; | ||
_allInfo params ["_knownByGroup", "_knownByUnit", "_lastSeen", "_lastThreat", "_side", "_errorMargin", "_position"]; | |||
</sqf> | |||
|x2= < | |x2= <sqf>private _posError = (_soldierOne targetKnowledge _jeepOne) select 5;</sqf> | ||
|seealso= [[knowsAbout]] [[targetsQuery]] [[targetsAggregate]] [[ | |seealso= [[knowsAbout]] [[targets]] [[targetsQuery]] [[nearTargets]] [[targetsAggregate]] [[reveal]] [[forgetTarget]] [[setTargetAge]] [[getHideFrom]] [[ignoreTarget]] | ||
}} | }} |
Latest revision as of 11:34, 3 September 2024
Description
- Description:
- Returns unit's knowledge about target.
- Groups:
- Object Detection
Syntax
- Syntax:
- unit targetKnowledge target
- Parameters:
- unit: Object
- target: Object
- Return Value:
- Array in format [knownByGroup, knownByUnit, lastSeen, lastThreat, side, errorMargin, position]:
- knownByGroup: Boolean - target known by group
- knownByUnit: Boolean - target known by the unit
- lastSeen: Number - last time the target was seen by the unit
- lastThreat: Number - last time the target endangered the unit
- side: Side - target side
- errorMargin: Number - position error
- position: Array - target position in format Position
- 2.18: Boolean - target is ignored (ignoreTarget)
Examples
- Example 1:
- Example 2:
Additional Information
- See also:
- knowsAbout targets targetsQuery nearTargets targetsAggregate reveal forgetTarget setTargetAge getHideFrom ignoreTarget
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