Reforger v1.8.13
Using the provided modded script:
Spawning a vehicle via a non-conflict vehicle depot makes it the gas level be 30%, not 100%. It might also work with conflict vehicle depots, not sure since my mod overrides conflict prefabs.
Spawning a vehicle via GM makes the gas level be 100%.
Give the provided code a try with GM and player spawning vehicles (non-conflict vehicle depot) in WB's HQC_Arland.
Found via my mod Limited Fuel Depot 1.3.2, also tested with a skeleton WB project. Something changed in 1.8.13 because it worked fine before. Watch the attached video. No other scripts, overrides, settings, or ghosts...just this one script.
modded class SRC_FuelNode
{
override void OnInit(IEntity owner)
{
super.OnInit(owner);
SCR_FuelManagerComponent FuelManager = SCR_FuelManagerComponent.Cast(owner.FindComponent(SCR_FuelManagerComponent));
if (owner.IsInherited(Vehicle))
{
float setVehLevel = 100.0;
FuelManager.SetTotalFuelPercentage(setVehLevel / FuelManager.GetTotalMaxFuel());
Print("Vehicle fuel should be at 100% (GM or non-Conflict vehicle depot). 30% otherwise.");
return;
}
}
}