Skip to content

Commit 5c11715

Browse files
committed
Replaced case 0 for testing with new seperated spawning code
1 parent 354ad3b commit 5c11715

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

source/dialog/request_vehicle.sqf

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,7 @@ vehic = nil;
2222

2323
switch (_index) do {
2424
case 0: { // Small Truck 1
25-
if (commandpointsblu1 >= 4) then {
26-
hint "Vehicle ready !";
27-
commandpointsblu1 = commandpointsblu1 - 4;
28-
ctrlSetText [1000, format["%1",commandpointsblu1]];
29-
//Might want refactor this next bit so it isn't repeated
30-
//In fact might want to refactor each case!
31-
_spawnPos = (getpos hq_blu1) findEmptyPosition [40, 120, vehicleType]
32-
_spawnPos = [(_spawnPos select 0)+30, _spawnPos select 1]
33-
vehic = "I_G_Offroad_01_F" createVehicle _spawnPos;
34-
} else {
35-
hint "Not enough command points";
36-
};
25+
[4, "I_G_Offroad_01_F"] execVM "dialog\spawnVehicle.sqf";
3726
};
3827
case 1: { // Small Truck 2
3928
if (commandpointsblu1 >= 6) then {

0 commit comments

Comments
 (0)