stilesw -> RE: Adjusting Fuel Load (10/31/2021 7:57:31 PM)
|
Sybaris, You can also accomplish this "on the fly" using Lua. An example: [.... are used for spacing not in the code] function Fillup3001( side, name ) { u = ScenEdit_GetUnit({side=USA,name=name OR Guid}) if u ~= nil then ....local newfuel = u.fuel ....if newfuel.current < 300 [whatever the max fuel amount actually is] then ........newfuel.current = newfuel.max ........u.fuel = newfuel ....end end } This function should be triggered at regular intervals, say every 15min. -WS
|
|
|
|