Ship with embarked aircraft
Posted: Mon Nov 29, 2021 5:09 pm
Hi, when I create a naval unit with ScenEdit_AddUnit I can't make it appear with embarked aircraft. I have tried the following:
ScenEdit_AddUnit ({type = 'Ship', name = 'BARCO', dbid = 2222, side = "SPAIN", embarkedUnits = {type = 'Aircraft', name = 'COBRA', dbid = 836}, Lat = "44.75" , Lon = "- 12.75"})
2222 = Spanish LHD
836 = AV8 Harrier
LUA does not return any error, the boat appears, but without the AV8.
What am I doing wrong?
Sorry if I ask stupid questions, I'm starting with this and going little by little.
ScenEdit_AddUnit ({type = 'Ship', name = 'BARCO', dbid = 2222, side = "SPAIN", embarkedUnits = {type = 'Aircraft', name = 'COBRA', dbid = 836}, Lat = "44.75" , Lon = "- 12.75"})
2222 = Spanish LHD
836 = AV8 Harrier
LUA does not return any error, the boat appears, but without the AV8.
What am I doing wrong?
Sorry if I ask stupid questions, I'm starting with this and going little by little.