BIS fnc enemyDetected: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
m (template:command argument fix) |
||
Line 13: | Line 13: | ||
| unit call [[BIS_fnc_enemyDetected]] |SYNTAX= | | unit call [[BIS_fnc_enemyDetected]] |SYNTAX= | ||
|p1= unit - [[Object]]: unit that is inspected |= | |p1= unit - [[Object]]: unit that is inspected |PARAMETER1= | ||
| [[Boolean]]: True if an enemy was detected |RETURNVALUE= | | [[Boolean]]: True if an enemy was detected |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_enemyDetected = _unit [[call]] '''BIS_fnc_enemyDetected''';</code> |= | |x1= <code>_enemyDetected = _unit [[call]] '''BIS_fnc_enemyDetected''';</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 14:29, 7 April 2019
Description
- Description:
- Returns true if unit knows about nearby enemy unit or driven vehicle.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- unit call BIS_fnc_enemyDetected
- Parameters:
- unit - Object: unit that is inspected
- Return Value:
- Boolean: True if an enemy was detected
Examples
- Example 1:
_enemyDetected = _unit call BIS_fnc_enemyDetected;
Additional Information
- See also:
- BIS_fnc_enemyTargets
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