Skip to content

Commit 8b20baa

Browse files
committed
Updated Jet-DLC jets to new vehicle spawning code
1 parent c25848a commit 8b20baa

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

source/dialog/request_vehicle.sqf

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -118,25 +118,10 @@ switch (_index) do {
118118
[60, "B_T_VTOL_01_armed_F"] execVM "dialog\spawnVehicle.sqf";
119119
};
120120
case 36: { //WASP
121-
if (commandpointsblu1 >= 50) then {
122-
hint "Vehicle ready !";
123-
commandpointsblu1 = commandpointsblu1 - 50;
124-
ctrlSetText [1000, format["%1",commandpointsblu1]];
125-
vehic = "B_Plane_Fighter_01_F" createVehicle _spawnPos;
126-
} else {
127-
hint "Not enough command points";
128-
};
129-
};
130-
121+
[50, "B_Plane_Fighter_01_F"] execVM "dialog\spawnVehicle.sqf";
122+
};
131123
case 37: { //WASP (Stealth)
132-
if (commandpointsblu1 >= 60) then {
133-
hint "Vehicle ready !";
134-
commandpointsblu1 = commandpointsblu1 - 60;
135-
ctrlSetText [1000, format["%1",commandpointsblu1]];
136-
vehic = "B_Plane_Fighter_01_Stealth_F" createVehicle _spawnPos;
137-
} else {
138-
hint "Not enough command points";
139-
};
124+
[60, "B_Plane_Fighter_01_Stealth_F"] execVM "dialog\spawnVehicle.sqf";
140125
};
141126
};
142127
vehic = nil;

0 commit comments

Comments
 (0)