Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

LUA and optional weapons

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> LUA and optional weapons Page: [1]
Login
Message << Older Topic   Newer Topic >>
LUA and optional weapons - 1/22/2017 9:10:55 PM   
Chris21wen

 

Posts: 6249
Joined: 1/17/2002
From: Cottesmore, Rutland
Status: offline
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?

Post #: 1
RE: LUA and optional weapons - 1/22/2017 9:53:21 PM   
mikmykWS

 

Posts: 11524
Joined: 3/22/2005
Status: offline
Mags updates are coming next update.

Thanks!

Mike

_____________________________


(in reply to Chris21wen)
Post #: 2
RE: LUA and optional weapons - 1/22/2017 10:40:17 PM   
Chris21wen

 

Posts: 6249
Joined: 1/17/2002
From: Cottesmore, Rutland
Status: offline

quote:

ORIGINAL: mikmyk

Mags updates are coming next update.

Thanks!

Mike


Thanks.

What about the optional loadout problem?

(in reply to mikmykWS)
Post #: 3
RE: LUA and optional weapons - 1/22/2017 11:12:59 PM   
mikmykWS

 

Posts: 11524
Joined: 3/22/2005
Status: offline
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





_____________________________


(in reply to Chris21wen)
Post #: 4
RE: LUA and optional weapons - 1/23/2017 8:10:16 AM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline

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.

_____________________________

Michael

(in reply to Chris21wen)
Post #: 5
RE: LUA and optional weapons - 1/23/2017 12:36:21 PM   
Chris21wen

 

Posts: 6249
Joined: 1/17/2002
From: Cottesmore, Rutland
Status: offline

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.

(in reply to mikmykWS)
Post #: 6
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> LUA and optional weapons Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

2.000