Reloading Weapons for Land Units
Posted: Thu Jul 30, 2020 9:39 am
Good morning - I'm attempting a LUA function to reload weapons to an Iskander SSM battalion.
I'm getting the error "No weapon defined" when running the command below.
Any assistance would be appreciated. I'm running 1147.7
local myunit = ScenEdit_GetUnit({name='test',side='Russia'})
print ( myunit )
ScenEdit_AddReloadsToUnit({unitname='test', w_dbid=1235, number=1, w_max=2})
I'm getting the error "No weapon defined" when running the command below.
Any assistance would be appreciated. I'm running 1147.7
local myunit = ScenEdit_GetUnit({name='test',side='Russia'})
print ( myunit )
ScenEdit_AddReloadsToUnit({unitname='test', w_dbid=1235, number=1, w_max=2})