mirror of
https://github.com/Teh-Dango/Sarge-AI.git
synced 2024-08-30 16:32:11 +00:00
7067ad9b0a
Check the change log for details
22 lines
431 B
Plaintext
22 lines
431 B
Plaintext
/****************************************************************
|
|
File: UPSMON_getNearestSoldier.sqf
|
|
Author: Monsada
|
|
|
|
Description:
|
|
|
|
Parameter(s):
|
|
|
|
Returns:
|
|
|
|
****************************************************************/
|
|
|
|
private["_units","_position","_near"];
|
|
|
|
_position = _this select 0;
|
|
_units = _this select 1;
|
|
|
|
_near = [_units, [], {_position distance _x}, "ASCEND"] call BIS_fnc_sortBy;;
|
|
_near = _near select 0;
|
|
|
|
|
|
_near |