mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
0633b807fa
* SwitchUnits * tacticalLadder * vehiclelock * vector * Typo, thanks circleCI * Fix stuff * Fix animate loop
22 lines
494 B
Plaintext
22 lines
494 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: bux578
|
|
* Returns an array of alive players in a given radius around a given location
|
|
*
|
|
* Arguments:
|
|
* 0: Center position <POSTION>
|
|
* 1: Radius <NUMBER>
|
|
*
|
|
* Return Value:
|
|
* Player units <ARRAY<OBJECT>>
|
|
*
|
|
* Example:
|
|
* [[300,300,0], 100] call ace_switchunits_fnc_nearestPlayers
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
|
|
params ["_position", "_radius"];
|
|
|
|
(nearestObjects [_position, ["Man"], _radius]) select {alive _x && {[_x] call EFUNC(common,isPlayer)}};
|