targetKnowledge: Difference between revisions

From Bohemia Interactive Community
(added missing ignoreTarget)
mNo edit summary
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]])
* {{GVI|arma3|2.18}} ignoreTarget: [[Boolean]] - target is ignored ([[ignoreTarget]])


|x1= <sqf>
|x1= <sqf>

Revision as of 21:47, 27 December 2025

Hover & click on the images for description

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, 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: Array - target position in format Position
  • Arma 3 logo black.png 2.18 ignoreTarget: Boolean - target is ignored (ignoreTarget)

Examples

Example 1:
private _allInfo = _soldierOne targetKnowledge _jeepOne; _allInfo params ["_knownByGroup", "_knownByUnit", "_lastSeen", "_lastThreat", "_side", "_errorMargin", "_position", "_ignoreTarget"];
Example 2:
private _posError = (_soldierOne targetKnowledge _jeepOne) select 5;

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