targetKnowledge: Difference between revisions
Jump to navigation
Jump to search
(Updated SEE ALSO) |
No 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]]) | |||
|x1= <sqf>private _allInfo = _soldierOne targetKnowledge _jeepOne; | |x1= <sqf>private _allInfo = _soldierOne targetKnowledge _jeepOne; |
Revision as of 15:18, 12 February 2024
Description
- Description:
- Returns unit's knowledge about target.
- Groups:
- Object Manipulation
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
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