targetKnowledge: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma3 | | arma3 | ||
|1.50 | |1.50 | ||
|gr1= Object Manipulation | |gr1= Object Manipulation | ||
| 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 15: | Line 15: | ||
# position error | # position error | ||
# target position | # target position | ||
| | | unit '''targetKnowledge''' target | ||
| | |p1= unit: [[Object]] | ||
| [[Array]] (7 elements) | |p2= target: [[Object]] | ||
| [[Array]] (7 elements) | |||
|x1= <code>_allInfo = _soldierOne [[targetKnowledge]] _jeepOne;</code> | |x1= <code>_allInfo = _soldierOne [[targetKnowledge]] _jeepOne;</code> | ||
|x2= <code>_posError = (_soldierOne [[targetKnowledge]] _jeepOne) [[select]] 5;</code> | |x2= <code>_posError = (_soldierOne [[targetKnowledge]] _jeepOne) [[select]] 5;</code> | ||
| [[knowsAbout]], [[targetsQuery]], [[targetsAggregate]], [[nearTargets]], [[reveal]], [[getHideFrom]] | | [[knowsAbout]], [[targetsQuery]], [[targetsAggregate]], [[nearTargets]], [[reveal]], [[getHideFrom]] | ||
}} | }} |
Revision as of 11:26, 18 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