targetKnowledge: Difference between revisions
Jump to navigation
Jump to search
Ondrejkuzel (talk | contribs) m (adj. examples) |
Killzone Kid (talk | contribs) (see also) |
||
Line 19: | Line 19: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | unit '''targetKnowledge''' target |= Syntax | ||
|p1= unit: [[Object]] |= Parameter 1 | |p1= unit: [[Object]] |= Parameter 1 | ||
Line 31: | Line 31: | ||
|x1= <code>_allInfo = _soldierOne [[targetKnowledge]] _jeepOne;</code> |= Example 1 | |x1= <code>_allInfo = _soldierOne [[targetKnowledge]] _jeepOne;</code> |= Example 1 | ||
|x2= <code>_posError = (_soldierOne [[targetKnowledge]] _jeepOne) select 5;</code> |= Example 2 | |x2= <code>_posError = (_soldierOne [[targetKnowledge]] _jeepOne) [[select]] 5;</code> |= Example 2 | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[nearTargets]], [[reveal]], [[getHideFrom]] |= See also | | [[knowsAbout]], [[targetsQuery]], [[targetsAggregate]], [[nearTargets]], [[reveal]], [[getHideFrom]] |= See also | ||
}} | }} |
Revision as of 23:04, 21 September 2015
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
- Multiplayer:
- ...
- Groups:
- Uncategorised
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