• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Property vehicles

Jessy

Refugee
Hello I would like to change the fuel type and repair kit for the vehicles, but without success.
Is there a way to do it?
Example of what I would like:

items:
<property name="RepairTools" value="resourceVehiclesRepairKit"/>

entityclasses:
<property name="Consumables" value="resourceVehicleElec"/>

And last but not least, is it possible that we can't fix them?

Thank you for your answers

 
Last edited by a moderator:
I have a mod that does "proper repair kits".  But could never figure it out for vehicles.   Changed them for everything else in the game, but just not vehicles.  A lot is hard coded on vehicles and I have never seen or found a way to get a custom repair kits for a vehicle.  Would love it if it happened, though, so I could truly complete my mod.

 
You could ask the author of Apocalypse Now mod how he did it to get his vehicle repair kits working.

Or check which external mod he included for this (IF he used a mod from someone else for this) and ask the author of that mod.

If it just works in xml without changes in C# (what I would normally expect) you could also just read the code of the mod to learn the secret.

 
Last edited by a moderator:
Vehicles are hard-coded to use "resourceRepairKit", so that mod likely renamed that one for vehicles, or used C#. The easy way to edit the vanilla repair kit to work how you want for vehicles, then make every other item use a different one.

Fuel changes would need C# as well.

 
Last edited by a moderator:
That's what I thought, thanks for your answers anyway!
We'll continue to use normal petrol and simple kits :)

 
Back
Top