Commercial tankers

Take command of air and naval assets from post-WW2 to the near future in tactical and operational scale, complete with historical and hypothetical scenarios and an integrated scenario editor.

Moderator: MOD_Command

Post Reply
User avatar
bladesinger79
Posts: 240
Joined: Thu Jan 14, 2016 8:07 am
Location: USA

Commercial tankers

Post by bladesinger79 »

How do I fill these with fuel for transportation as cargo? I want to simulate loading/unloading at ports, and what happens if one catches fire.

Or is it no big deal in the grand scheme of CMO?
"No Sir, I don't think that's a good idea at all." -last words from unnamed NCO before falling into an enemy ambush.
Nikel
Posts: 3273
Joined: Tue Mar 24, 2009 10:51 am

Re: Commercial tankers

Post by Nikel »

There are tank containers that can be edited with different oil, gas or fuel types.

I do not think the fire is simulated differently, but never tried :)
User avatar
bladesinger79
Posts: 240
Joined: Thu Jan 14, 2016 8:07 am
Location: USA

Re: Commercial tankers

Post by bladesinger79 »

I tried that. After a few containers, I realized it would take me many many many hours to fill a commercial fuel tanker, especially a supertanker of 420K DWT size.
"No Sir, I don't think that's a good idea at all." -last words from unnamed NCO before falling into an enemy ambush.
Nikel
Posts: 3273
Joined: Tue Mar 24, 2009 10:51 am

Re: Commercial tankers

Post by Nikel »

Yes, you can only edit one at a time.
Nikel
Posts: 3273
Joined: Tue Mar 24, 2009 10:51 am

Re: Commercial tankers

Post by Nikel »

OK, this can be done via lua.


Only after some trial and error with the Ai, enough for the new limit to appear :lol:

LL.png
LL.png (26.07 KiB) Viewed 449 times


This code will add tanker containers to a tanker. 2000, if less are allowed due to the size of the tanker, it will stop there.
local u = ScenEdit_GetUnit({guid='CWVLA7-0HNMVC5FRQ4T4'})

for i=1,2000 do
u:createUnitCargo(4,14)
end

print(#u.cargo[1].cargo)


In this case the limit was 322.


This code will fill all of them with Diesel fuel.

local u = ScenEdit_GetUnit({guid='CWVLA7-0HNMVC5FRQ4T4'})
local cargoList = u.cargo[1].cargo

for i=1,#cargoList do
local c = u:getUnitCargo(cargoList.guid)
c:createContainerContentFuel(3001,33750)
end



FTC.gif
FTC.gif (249.7 KiB) Viewed 446 times


More fuel codes in the game.

2001 = AviationFuel
3001 = DieselFuel
3002 = OilFuel
3003 = GasFuel
4001 = Battery
Post Reply

Return to “Command: Modern Operations series”