Bandura1 -> RE: Problem with Lua functions (12/11/2016 4:07:11 PM)
|
I am creating a scenario about the Sidi Ifni war in 1957. In that war the Spanish forces fought against the liberation army. I needed to simulate ground fighting a little better. I've simulated companies by adding more weapons and fortified outposts. In reality many of these posts were besieged. Supplies arrived from the air. I want to simulate this. When a cargo plane flies one of these positions an event is activated. This event delivers ammunition or weapons to that position. To do this, I need the ScenEdit_AddWeaponToUnitMagazine and ScenEdit_AddReloadsToUnit functions to work. However I have not got it and I thought they may not be active right now. These functions I have found looking at documentation on LUA and CMANO. To make the call I use what I found in the documentation: quote:
ScenEdit_AddWeaponToUnitMagazine({name='Ammo', w_dbid=773, number=1, w_max=10})
|
|
|
|