GreenXp 8 Posted March 11, 2019 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
Maff 251 Posted March 11, 2019 (edited) 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.setAmmoCargosetFuelCargosetRepairCargo _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 March 12, 2019 by Maff Spelling. Share this post Link to post Share on other sites
GreenXp 8 Posted March 11, 2019 Ty, I'll try it out Share this post Link to post Share on other sites