Difference between revisions of "UnitInvestigate"
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Groups:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Groups:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | ||
Gameplay | Gameplay Functions: Eric's Mission Framework | ||
</div></dd> | </div></dd> | ||
</dl> | </dl> | ||
Line 28: | Line 28: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Syntax:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Syntax:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><div style="display:block;"> | ||
[investigateRadius, waypointRadius] call ''' | [investigateRadius, waypointRadius] call '''emf_gameplay_fnc_unitInvestigate''' | ||
</div></dd> | </div></dd> | ||
Line 53: | Line 53: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 1:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 1:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;"> | ||
call ''' | call '''emf_gameplay_fnc_unitInvestigate'''; | ||
</code></dd> | </code></dd> | ||
Line 59: | Line 59: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 2:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Example 2:</dt> | ||
<dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;"> | <dd style="width:90%;padding:.3em .3em .3em 7em;"><code style="border:#25A1A1 dashed 1px;display:block;"> | ||
[150, 30] call ''' | [150, 30] call '''emf_gameplay_fnc_unitInvestigate'''; | ||
</code></dd> | </code></dd> | ||
Line 86: | Line 86: | ||
<!-- CATEGORIES --> | <!-- CATEGORIES --> | ||
[[Category:Gameplay | [[Category:Gameplay Functions: Eric's Mission Framework]] | ||
[[Category:Functions: Eric's Mission Framework]] | [[Category:Functions: Eric's Mission Framework]] |
Revision as of 13:25, 26 March 2022
Description
- Description:
Have enemy units within x range investigate shots. It must be run locally (eg. from initPlayerLocal.sqf).
- Execution:
call
- Groups:
Gameplay Functions: Eric's Mission Framework
Syntax
- Syntax:
[investigateRadius, waypointRadius] call emf_gameplay_fnc_unitInvestigate
- Parameters:
investigateRadius: Number - Max range in meters AI will go and investigate shots. [Default: 300]
waypointRadius: Number - Radius in meters to place waypoint around player [Default: 15]
- Return Value:
None
Examples
- Example 1:
call emf_gameplay_fnc_unitInvestigate;
- Example 2:
[150, 30] call emf_gameplay_fnc_unitInvestigate;
Additional Information
- See also:
Notes