summaryrefslogtreecommitdiffstats
path: root/Server/PVFunctions/RequestDefense.sqf
blob: 70d6a5d378e2d8608f6d1e00366237f56888cfe9 (plain)
1
2
3
4
5
6
7
8
9
10
11
private ["_defenseType","_dir","_index","_manned","_pos","_side"];
_side = _this select 0;
_defenseType = _this select 1;
_pos = _this select 2;
_dir = _this select 3;
_manned = _this select 4;

_index = (Format["WFBE_%1DEFENSENAMES",str _side] Call GetNamespace) find _defenseType;
if (_index != -1) then {
	[_defenseType,_side,_pos,_dir,_manned,false] Call ConstructDefense;
};