LUA and optional weapons (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios



Message


Chris21wen -> LUA and optional weapons (1/22/2017 9:10:55 PM)

I'm using this to load a Fencer with a Kegler loadout. It works, what it doesn't do is load the optional Aphid. I've also tried setting IgnoreMagazines='False' as well.

ScenEdit_SetLoadout({UnitNameOrID='387th IBAP #5', LoadoutID=253, TimeToReady_Minutes=1, IgnoreMagazines='True'})


Second question. Is there a LUA function to load magazines?





mikmykWS -> RE: LUA and optional weapons (1/22/2017 9:53:21 PM)

Mags updates are coming next update.

Thanks!

Mike




Chris21wen -> RE: LUA and optional weapons (1/22/2017 10:40:17 PM)


quote:

ORIGINAL: mikmyk

Mags updates are coming next update.

Thanks!

Mike


Thanks.

What about the optional loadout problem?




mikmykWS -> RE: LUA and optional weapons (1/22/2017 11:12:59 PM)

Try adding this to the code

ExcludeOptionalWeapons='False'

If it doesn't work let me know. It may not be until next update but I'll see if I can write the script if you fail.

Thanks!

Mike







michaelm75au -> RE: LUA and optional weapons (1/23/2017 8:10:16 AM)


quote:

ORIGINAL: Chris H

I'm using this to load a Fencer with a Kegler loadout. It works, what it doesn't do is load the optional Aphid. I've also tried setting IgnoreMagazines='False' as well.

ScenEdit_SetLoadout({UnitNameOrID='387th IBAP #5', LoadoutID=253, TimeToReady_Minutes=1, IgnoreMagazines='True'})


Second question. Is there a LUA function to load magazines?



Current Lua function always excludes optional for some reason. Next update will default to include optional weapons, with option to exclude them.




Chris21wen -> RE: LUA and optional weapons (1/23/2017 12:36:21 PM)


quote:

ORIGINAL: mikmyk

Try adding this to the code

ExcludeOptionalWeapons='False'

If it doesn't work let me know. It may not be until next update but I'll see if I can write the script if you fail.

Thanks!

Mike



Unfortunately it did not. No biggy I'll forget the idea I had for now and wait.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.640625