stilesw
Posts: 1497
Joined: 6/26/2014 From: Hansville, WA, USA Status: offline
|
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
< Message edited by stilesw -- 10/31/2021 7:58:26 PM >
_____________________________
“There is no limit to what a man can do so long as he does not care a straw who gets the credit for it.” Charles Edward Montague, English novelist and essayist ~Disenchantment, ch. 15 (1922)
|