summaryrefslogtreecommitdiffstats
path: root/Common/Functions/Common_RevealArea.sqf
blob: 3a94c95f6a47b4b709a752fcad6f53b7c6927ece (plain)
1
2
3
4
5
6
7
8
9
10
11
Private ["_pos","_range","_reveal","_team","_unit"];

_unit = _this select 0;
_range = _this select 1;
_pos = _this select 2;

{
	_reveal = [_x];
	if (_x != vehicle _x) then {_reveal = _reveal + (crew _x)};
	{_unit reveal _x} forEach _reveal;
} forEach (_pos nearEntities _range);