Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Problem with Lua functions

 
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 >> Problem with Lua functions Page: [1]
Login
Message << Older Topic   Newer Topic >>
Problem with Lua functions - 12/11/2016 7:59:38 AM   
Bandura1

 

Posts: 31
Joined: 12/11/2016
Status: offline
First sorry for my bad english. There are several functions that do not seem to work. For examnple:

ScenEdit_AddWeaponToUnitMagazine
ScenEdit_AddReloadsToUnit

which is the reason?

Thank you
Post #: 1
RE: Problem with Lua functions - 12/11/2016 12:37:34 PM   
kevinkins


Posts: 2257
Joined: 3/8/2006
Status: offline
Interested in seeing the full code and the context of the function calls. So if you could post a scenario file that would be great. Others with more experiance will help out shortly.

Thanks

Kevin

(in reply to Bandura1)
Post #: 2
RE: Problem with Lua functions - 12/11/2016 4:07:11 PM   
Bandura1

 

Posts: 31
Joined: 12/11/2016
Status: offline
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})



(in reply to kevinkins)
Post #: 3
RE: Problem with Lua functions - 12/11/2016 4:21:14 PM   
mikmykWS

 

Posts: 11524
Joined: 3/22/2005
Status: offline
Hi

These will be released in a future update. Thanks!

Mike

_____________________________


(in reply to Bandura1)
Post #: 4
RE: Problem with Lua functions - 12/11/2016 4:46:41 PM   
Bandura1

 

Posts: 31
Joined: 12/11/2016
Status: offline

quote:

ORIGINAL: mikmyk

Hi

These will be released in a future update. Thanks!

Mike


Ok Thanks¡

(in reply to mikmykWS)
Post #: 5
RE: Problem with Lua functions - 12/11/2016 5:20:26 PM   
mikmykWS

 

Posts: 11524
Joined: 3/22/2005
Status: offline
Sorry btw! Its rare that programmers are actually ahead in documenting and this is definitely a sign we've got a good one on this.

Mike

_____________________________


(in reply to Bandura1)
Post #: 6
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Problem with Lua functions 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

0.625