Page 1 of 1

Transfer Cargo

Posted: Sat Mar 06, 2021 4:14 pm
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.