targetKnowledge: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)\]\]" to "{{GameCategory|arma3|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma3 |Game name= | | arma3 |Game name= | ||
Line 7: | Line 6: | ||
|gr1= Object Manipulation |GROUP1= | |gr1= Object Manipulation |GROUP1= | ||
| Returns unit's knowledge about target. The returned array includes information whether the target is | | Returns unit's knowledge about target. The returned array includes information whether the target is | ||
Line 18: | Line 16: | ||
# target position | # target position | ||
|DESCRIPTION= | |DESCRIPTION= | ||
| unit '''targetKnowledge''' target |SYNTAX= | | unit '''targetKnowledge''' target |SYNTAX= | ||
Line 27: | Line 24: | ||
| [[Array]] (7 elements) |RETURNVALUE= | | [[Array]] (7 elements) |RETURNVALUE= | ||
|x1= <code>_allInfo = _soldierOne [[targetKnowledge]] _jeepOne;</code> |EXAMPLE1= | |x1= <code>_allInfo = _soldierOne [[targetKnowledge]] _jeepOne;</code> |EXAMPLE1= | ||
|x2= <code>_posError = (_soldierOne [[targetKnowledge]] _jeepOne) [[select]] 5;</code> |EXAMPLE2= | |x2= <code>_posError = (_soldierOne [[targetKnowledge]] _jeepOne) [[select]] 5;</code> |EXAMPLE2= | ||
| [[knowsAbout]], [[targetsQuery]], [[targetsAggregate]], [[nearTargets]], [[reveal]], [[getHideFrom]] |SEEALSO= | | [[knowsAbout]], [[targetsQuery]], [[targetsAggregate]], [[nearTargets]], [[reveal]], [[getHideFrom]] |SEEALSO= |
Revision as of 03:49, 17 January 2021
Description
- Description:
- Returns unit's knowledge about target. The returned array includes information whether the target is
- known by group
- known by the unit
- last time the target was seen by the unit
- last time the target endangered the unit
- target side
- position error
- target position
- Groups:
- Object Manipulation
Syntax
- Syntax:
- unit targetKnowledge target
- Parameters:
- unit: Object
- target: Object
- Return Value:
- Array (7 elements)
Examples
- Example 1:
_allInfo = _soldierOne targetKnowledge _jeepOne;
- Example 2:
_posError = (_soldierOne targetKnowledge _jeepOne) select 5;
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