summaryrefslogtreecommitdiffstats
path: root/Common/Functions/Common_GetFriendlyCamps.sqf
blob: cebe329ee26b74c13fe374a1125342cf4088c033 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
private ["_camps","_friendlyCamps","_side","_sideID","_town"];

_town = _this Select 0;
_side = _this Select 1;

_sideID = _side Call GetSideID;
_camps = _town getVariable "camps";
_friendlyCamps = [];

{
	if ((_x getVariable "sideID") == _sideID) then {_friendlyCamps = _friendlyCamps + [_x]};	
} forEach _camps;

_friendlyCamps