CBA_fnc_nearPlayer

Description

Check whether these are any players within a certain distance of a unit.

Parameters

_unitthe entity to check the distance from.  <OBJECT>
_distancethe desired distance.  <NUMBER>

Returns

true if there are any players within the given distance of the unit, false if there aren’t.  <BOOLEAN>

Examples

[unit, distance] call CBA_fnc_nearPlayer

Author

Close