-
Notifications
You must be signed in to change notification settings - Fork 0
/
UnitSetup.sqf
55 lines (42 loc) · 1.53 KB
/
UnitSetup.sqf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//UnitSetup.sqf
//Runs on all machines
//Called once at start
//Called from PMSetup.sqf
//pvs
private ["_handle"];
//Civ Towns
_handle = execVM ("units\CivTowns.sqf");
waitUntil{scriptDone _handle};
//blue 1
_handle = execVM ("units\BlueTeam1_" + str (paramsArray select 3) + ".sqf");
waitUntil{scriptDone _handle};
//blue 2
_handle = execVM ("units\BlueTeam2_" + str (paramsArray select 4) + ".sqf");
waitUntil{scriptDone _handle};
//red 1
_handle = execVM ("units\RedTeam1_" + str (paramsArray select 5) + ".sqf");
waitUntil{scriptDone _handle};
//red 2
_handle = execVM ("units\RedTeam2_" + str (paramsArray select 6) + ".sqf");
waitUntil{scriptDone _handle};
//green 1
_handle = execVM ("units\GreenTeam1_" + str (paramsArray select 7) + ".sqf");
waitUntil{scriptDone _handle};
//green 2
_handle = execVM ("units\GreenTeam2_" + str (paramsArray select 8) + ".sqf");
waitUntil{scriptDone _handle};
//red 3
_handle = execVM ("units\RedTeam3_" + str (paramsArray select 14) + ".sqf");
waitUntil{scriptDone _handle};
//blue 3
_handle = execVM ("units\BlueTeam3_" + str (paramsArray select 15) + ".sqf");
waitUntil{scriptDone _handle};
//green 3
_handle = execVM ("units\GreenTeam3_" + str (paramsArray select 16) + ".sqf");
waitUntil{scriptDone _handle};
//civilian 1
_handle = execVM ("units\CivTeam1_" + str (paramsArray select 9) + ".sqf");
waitUntil{scriptDone _handle};
//civilian 2
_handle = execVM ("units\CivTeam2_" + str (paramsArray select 10) + ".sqf");
waitUntil{scriptDone _handle};