Lua Adding Mounts
Posted: Thu Nov 26, 2020 3:57 am
I'm trying to add mounts to units via Lua. In this test I was trying to add another M1A2 SEP Abrams mount to an existing armored unit.
>> ScenEdit_UpdateUnit({guid='P40YQP-0HM4HQ52CI28L',mode='add_mount',dbid=2883})
BUT Its kicking back an error:
ScenEdit_UpdateUnit 0 : ,No targeting arcs supplied for mount M1A2 SEP Abrams Main Battle Tank
I've tried all the arc settings from ScenEdit_UpdateUnit. Anyone have an idea what I'm doing wrong? I'm sure its something simple and right in front of my face.
>> ScenEdit_UpdateUnit({guid='P40YQP-0HM4HQ52CI28L',mode='add_mount',dbid=2883})
BUT Its kicking back an error:
ScenEdit_UpdateUnit 0 : ,No targeting arcs supplied for mount M1A2 SEP Abrams Main Battle Tank
I've tried all the arc settings from ScenEdit_UpdateUnit. Anyone have an idea what I'm doing wrong? I'm sure its something simple and right in front of my face.