obrien979 -> Adding Weapons to Magazines (8/16/2019 8:57:41 AM)
|
I am trying to use a LUA script to represent delivering ammo resupply to ground units. I have tried the following code: ScenEdit_AddWeaponToUnitMagazine({unitname='3-82 FA', w_dbid=7443, new="true",number=1, w_max=10}) Despite my numerous attempts using what I thought was the correct w_dbid number, I have had no success. For example I am trying to add 155mm/39 HE rounds to the unit. When you search in the DB Viewer you get an ID# 2243, that number didnt work in the script. Then I looked under in the ADD WEAPON RECORD menu in the MAGAZINES SELECTION for the unit and found the same munition type but with ID# 7343, that number didnt work as well. My question is two part, Am I using the right script and correctly? and what is the correct w_dbid to use? Thank You
|
|
|
|