Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Adjusting Fuel Load

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Adjusting Fuel Load Page: [1]
Login
Message << Older Topic   Newer Topic >>
Adjusting Fuel Load - 10/31/2021 2:12:44 PM   
Sybaris


Posts: 55
Joined: 3/14/2015
Status: offline
For the life of me I thought there was either a menu item or LUA script where you could adjust the fuel load of airborne aircraft. I have read where that was a update in a previous CMANO version. I can't find how to do that anywhere though. Any help much appreciated.
Post #: 1
RE: Adjusting Fuel Load - 10/31/2021 2:54:24 PM   
AndrewJ

 

Posts: 2318
Joined: 1/5/2014
Status: offline
You can do this if you load the scenario in the editor.

Editor > Unit Actions > Set Fuel Qty and Airborne Time


(in reply to Sybaris)
Post #: 2
RE: Adjusting Fuel Load - 10/31/2021 2:56:04 PM   
goldfinger35


Posts: 142
Joined: 1/1/2009
Status: offline
You mean mission editor, select unit, top menu editor-unit actions-set unit fuel qty ?

edit: AndrewJ was faster

(in reply to Sybaris)
Post #: 3
RE: Adjusting Fuel Load - 10/31/2021 3:07:36 PM   
Sybaris


Posts: 55
Joined: 3/14/2015
Status: offline
That's the one but it is grayed out and not functional in the menu when I have a unit hooked.

Nevermind. I was trying to do it to a formation but now I can't get them to regroup!

---------------

Got them to regroup. Apparently one or more wasn't detached from something else or something so I had to individually detach and regroup.

< Message edited by Sybaris -- 11/1/2021 7:00:34 PM >

(in reply to goldfinger35)
Post #: 4
RE: Adjusting Fuel Load - 10/31/2021 7:57:31 PM   
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)

(in reply to Sybaris)
Post #: 5
RE: Adjusting Fuel Load - 10/31/2021 8:42:26 PM   
Bashkire

 

Posts: 38
Joined: 2/23/2015
Status: offline

quote:

ORIGINAL: Sybaris
...I was trying to do it to a formation...


I was today years old when I realised how to use this menu option. I've been doing it to groups all this time and I never even knew. Thanks for saying that, otherwise I'd have never known why that function wasn't working!

(in reply to Sybaris)
Post #: 6
RE: Adjusting Fuel Load - 11/3/2021 4:23:43 AM   
KnightHawk75

 

Posts: 1450
Joined: 11/15/2018
Status: offline
quote:

ORIGINAL: Sybaris

That's the one but it is grayed out and not functional in the menu when I have a unit hooked.

Nevermind. I was trying to do it to a formation but now I can't get them to regroup!

---------------

Got them to regroup. Apparently one or more wasn't detached from something else or something so I had to individually detach and regroup.

Just switch to unit view next time, no need to de-group them to select the individual unit.

Also floating around here is a refuel selected units script from me somewhere you can plop into a special action so you can also just select a bunch of units if you want and refuel what's selected. If you select a group, it'll handle doing each unit for you.
https://www.matrixgames.com/forums/tm.asp?m=4826182 (post #2 attachment)

In the Lua forums you can also find recent post by me that had code similar to #5 but if for application more widely based on a side... like go refuel all blue aircraft with DBID 12345.




< Message edited by KnightHawk75 -- 11/3/2021 4:24:15 AM >

(in reply to Sybaris)
Post #: 7
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Adjusting Fuel Load Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.219