michaelm75au -> RE: Two quick LUA Questions (5/3/2019 3:43:16 AM)
|
1. For unloading cargo, you need to supply what to unload - ScenEdit_UnloadCargo (fromUnit, cargoList). cargoList = List of cargo to unload: table of {guids}, or { { number, (optional) DBID of item}} ScenEdit_UnloadCargo('505332a4-e257-47f4-8768-9e82b234ee4c', {{2918},'fde7142b-8757-47c0-8170-2748d74132d3'}) 2. For adding to magazine - ScenEdit_AddWeaponToUnitMagazine (descriptor) where descriptor describes the weapon and magazine to update. ScenEdit_AddWeaponToUnitMagazine({unitname='Ammo', w_dbid=773, number=1}) https://commandlua.github.io/index.html#Functions
|
|
|
|