Arma 3
[SP/MP] DUWS: Overhauled v1.21 [WORK DISCONTINUED - CHECK LINK IN DESCRIPTION]
Add new Units and Vehicles
Hey i tried adding new Vehicles to this mod but i did not get it to work.
I added these lines in request_vehicle.sqf:

// Firewill AV8B
case 157:
{
if (commandpointsblu1 >= 0) then
{
hint "Please choose something !";
}
else
{
hint "Please choose something !";
};
};

case 158:
{
if (commandpointsblu1 >= 0) then
{
hint "Please choose something !";
}
else
{
hint "Please choose something !";
};
};

// AV-8B Harrier cost 45
case 159:
{
if (commandpointsblu1 >= 45) then
{
if (isClass(configFile >> "CfgVehicles" >> "FIR_AV8B")) then {
hint "Vehicle ready !";
commandpointsblu1 = commandpointsblu1 - 45;
ctrlSetText [1000, format["%1",commandpointsblu1]];
_vehic = "FIR_AV8B" createVehicle _spawnPos;
} else {
hint "Firewill AV-8B mod not installed!";
};
}
else
{
hint "Not enough command points";
};
};


Do i need to edit some other files to get it to work?

Last edited by jotrolol_ | snens; May 25, 2019 @ 12:19am
< >
Showing 1-1 of 1 comments
MajorBlunderbuss  [developer] Jul 31, 2019 @ 10:52pm 
@jotrolol_ | snens - Hello! I apologize for replying this late - I've didn't recognized this discussion until now.

The request_vehicle.sqf is one of to files you have to edit to add a vehicle. If you want to add a vehicle for the request menu of FOB's, you of course have to edit the request_vehicle_fob.sqf aswell. But theres also the request.sqf and the request_fob.sqf you should pay attention to.

If you just replaced an existing vehicle - let's pretend thats what you did - you must then edit the request.sqf, scroll down to the vehicle section, look for the entry you've edited in the request_vehicle.sqf - easily found by looking for the case number -, and probably then replace the vehicles name and cost - if edited - so you can better find it in game.

If you wan't to add a complete new vehicle - let's pretend thats what you want to do - you of course have to create new entrys in the request_vehicle.sqf and the request.sqf.

The example you provided above should work, if you have copied existing examples correctly without missing something. But of course you then have to edit the request.sqf, and also make a new entry for this new vehicle, so it can show up in the ingame menu. Same procedure: Copy existing examples, and pay attention to the case numbers - it's easy to break something if they aren't absolute correct. And do not forget to pay attention to the "//" which are used to separate factions. If you forget to use them to separate your new entry, the code won't work completely.

Hope this helps - if you still need it.

Regards.

< >
Showing 1-1 of 1 comments
Per page: 1530 50