Difference between revisions of "NearestPlayer"
Jump to navigation
Jump to search
(Created page with "<div style="padding:0.33em 2em;font-size:1.2em;font-weight:bold;display:block; border-bottom: #25A1A1 solid 1px; background-color:#E0FFFF;color:#25A1A1">Description</div> <dl...") |
|||
Line 6: | Line 6: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Description:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Description:</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;"> | ||
Returns the nearest player to | Returns the nearest player to object. | ||
</div></dd> | </div></dd> | ||
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;"> | ||
Utilities: 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;"> | ||
[ | [obj] call '''emf_utilities_fnc_nearestPlayer''' | ||
</div></dd> | </div></dd> | ||
Line 34: | Line 34: | ||
<dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Parameters:</dt> | <dt style="clear:both;font-weight:bold;position:absolute;padding:.3em;">Parameters:</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;"> | ||
Obj: Object - Object to use as the root point of search. | |||
</div></dd> | </div></dd> | ||
Line 50: | Line 50: | ||
<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;"> | ||
[this] call ''' | [this] call '''emf_utilities_fnc_nearestPlayer'''; | ||
</code></dd> | </code></dd> | ||
Revision as of 14:34, 26 March 2022
Description
- Description:
Returns the nearest player to object.
- Execution:
call
- Groups:
Utilities: Eric's Mission Framework
Syntax
- Syntax:
[obj] call emf_utilities_fnc_nearestPlayer
- Parameters:
Obj: Object - Object to use as the root point of search.
- Return Value:
Object - Returns nearest player to Unit.
Examples
- Example 1:
[this] call emf_utilities_fnc_nearestPlayer;
Additional Information
- See also:
Notes