LUA - How to put an ISO container in Cargo and fill it with ammunition?
Posted: Mon Feb 06, 2023 2:22 pm
REally not making progress in understanding the SE_UpdateUnitCargo. Help please!
ScenEdit_UpdateUnitCargo( { guid='2cd64757-1b66-4609-ad56-df41bee652e5', mode='add_cargo', cargo={ {5,752}, {700 } } } )
From the http://commandlua.github.io/assets/Func ... Cargo.html
This seems to add 5 M1A1 and a Mk41 VLS to the unit with the cargo?
I can follow the 5 M1's bit but why is it adding a MK41 VLS as the DB id 700 should be for another ground vehicle?
What is the hierachy with this function in terms of adding a container DBID 4 (but if you use 4 in the above script it adds a 12.7mm burst?? and then how do you fill that container with ammunition using LUA?
I have an old script to "buy" weaponry using special actions which is then flown to the destination and offloaded with an in area trigger for a specific aircaft but want to update it with the Cargo function so it can be delivered by any functioning transport aircraft not just the specific aircraft triggering on entering the area?
Thanks in advance.
K
ScenEdit_UpdateUnitCargo( { guid='2cd64757-1b66-4609-ad56-df41bee652e5', mode='add_cargo', cargo={ {5,752}, {700 } } } )
From the http://commandlua.github.io/assets/Func ... Cargo.html
This seems to add 5 M1A1 and a Mk41 VLS to the unit with the cargo?
I can follow the 5 M1's bit but why is it adding a MK41 VLS as the DB id 700 should be for another ground vehicle?
What is the hierachy with this function in terms of adding a container DBID 4 (but if you use 4 in the above script it adds a 12.7mm burst?? and then how do you fill that container with ammunition using LUA?
I have an old script to "buy" weaponry using special actions which is then flown to the destination and offloaded with an in area trigger for a specific aircaft but want to update it with the Cargo function so it can be delivered by any functioning transport aircraft not just the specific aircraft triggering on entering the area?
Thanks in advance.
K