Transfer Cargo

All discussions & material related to Command's Lua interface

Moderators: angster, RoryAndersonCDT, michaelm75au, MOD_Command

Post Reply
Parel803
Posts: 941
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Transfer Cargo

Post by Parel803 »

Goodevening,
Trying to do some stuff with cargo.
Tried the ScenEdit_TransferCargo and looked at https://www.matrixgames.com/forums/tm.a ... rgo�

I made:
local o = ScenEdit_GetUnit ({name='DMAN', guid='50PVO4-0HM6OV6K7KALC'})
local d = ScenEdit_GetUnit ({name='DMAN3', guid='50PVO4-0HM70Q7PT81CR'})
ScenEdit_TransferCargo ( o.guid, d.guid, { {1,2884},{1,2321} })

After execution the second unit is gone and it course line goes back to 0N 0E on the map and it isn't visible anymore.
The cargo seems to be substracted from the orinating unit.

print (d)
latitude = '0',
longitude = '0',

Hope someone can help me what I'm doing wrong here.
with regards Gert-Jan

My bad it reads from mother to child, so gonna retry.
Sorry this thread can be deleted.
Post Reply

Return to “Lua Legion”