targetKnowledge: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>") |
BrettMayson (talk | contribs) mNo edit summary |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 14: | Line 14: | ||
|p2= target: [[Object]] | |p2= target: [[Object]] | ||
|r1= [[Array]] | |r1= [[Array]] with [knownByGroup, knownByUnit, lastSeen, lastThreat, side, errorMargin, position, ignoreTarget] | ||
* knownByGroup: [[Boolean]] - target known by group | * knownByGroup: [[Boolean]] - target known by group | ||
* knownByUnit: [[Boolean]] - target known by the unit | * knownByUnit: [[Boolean]] - target known by the unit | ||
| Line 21: | Line 21: | ||
* side: [[Side]] - target side | * side: [[Side]] - target side | ||
* errorMargin: [[Number]] - position error | * errorMargin: [[Number]] - position error | ||
* position: [[ | * position: [[Position]] - target position | ||
* {{GVI|arma3|2.18}}: [[Boolean]] - target is ignored ([[ignoreTarget]]) | * {{GVI|arma3|2.18}} ignoreTarget: [[Boolean]] - target is ignored ([[ignoreTarget]]) | ||
|x1= <sqf> | |x1= <sqf> | ||
private _allInfo = _soldierOne targetKnowledge _jeepOne; | private _allInfo = _soldierOne targetKnowledge _jeepOne; | ||
_allInfo params ["_knownByGroup", "_knownByUnit", "_lastSeen", "_lastThreat", "_side", "_errorMargin", "_position"]; | _allInfo params ["_knownByGroup", "_knownByUnit", "_lastSeen", "_lastThreat", "_side", "_errorMargin", "_position", "_ignoreTarget"]; | ||
</sqf> | </sqf> | ||
Latest revision as of 05:31, 3 January 2026
Description
- Description:
- Returns unit's knowledge about target.
- Groups:
- Object Detection
Syntax
- Syntax:
- unit targetKnowledge target
- Parameters:
- unit: Object
- target: Object
- Return Value:
- Array with [knownByGroup, knownByUnit, lastSeen, lastThreat, side, errorMargin, position, ignoreTarget]
- 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: Position - target position
2.18 ignoreTarget: 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.
Only post proven facts here! Add Note