Jump to content
GreenXp

Does a ammo truck ever run out of resupplies ?

Recommended Posts

Its a fairly self explanatory question. If I resupply something over and over again will the truck run out of supplies ? and if it does or doesn't how do I change that ? I want to make it so it can only resupply let's say 2 or 3 tanks.

Share this post


Link to post
Share on other sites

Vehicle supplies are determined by the config value.
To return the value, use one of the following depending on Ammo, Fuel or Repair.

// Vanilla ArmA 1.90 values.
//	BLUFOR HEMTTs.
getNumber (configfile >> "CfgVehicles" >> "B_Truck_01_ammo_F" >> "transportAmmo") // 1e+012 or 1000000000000!
getNumber (configfile >> "CfgVehicles" >> "B_Truck_01_fuel_F" >> "transportFuel") // 1e+012 or 1000000000000!
getNumber (configfile >> "CfgVehicles" >> "B_Truck_01_Repair_F" >> "transportRepair") // 1e+012 or 1000000000000!

To change those values with scripting, use the relevant command to limit the supplies.
setAmmoCargo
setFuelCargo
setRepairCargo
 

_truck setAmmoCargo 0.5; // Limit the supply amount to 50% of the config value.
_truck setAmmoCargo 0.25; // Limit the supply amount to 25% of the config value.
_truck setAmmoCargo 0.1; // Limit the supply amount to 10% of the config value.

That's a little too much math for me.

 

So... Have fun.

Edited by Maff
Spelling.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×