Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Escort missions

 
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 Legion >> Escort missions Page: [1]
Login
Message << Older Topic   Newer Topic >>
Escort missions - 8/3/2018 11:49:49 AM   
Gunner98

 

Posts: 5508
Joined: 4/29/2005
From: The Great White North!
Status: offline
Hay guys

This should be a simple one but I'm doing something wrong with it.



for i=1,18 do
if ScenEdit_GetUnit({Side='WP', Name="582nd IAP #"..i,}) ~= nil then
ScenEdit_AssignUnitToMission("582nd IAP #"..i, "Laage AB", escort=True)
end
end


Everything is working except for assigning the units as escort. Assigning to the base mission is fine, so its probably a syntax issue with the Boolean statement for assigning to escort. Have tried various combinations of ' & } to no effect.


Any help would be appreciated.


Thanks



_____________________________

Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/
Post #: 1
RE: Escort missions - 8/3/2018 2:28:55 PM   
stilesw


Posts: 1497
Joined: 6/26/2014
From: Hansville, WA, USA
Status: offline
Gunnar98,

Think I found it. The syntax does not want the word "escort" (go figure). I tested this and it worked:

ScenEdit_AssignUnitToMission ("F-15I-1", "Strike-Baghdad", true)

-Wayne

(in reply to Gunner98)
Post #: 2
RE: Escort missions - 8/3/2018 2:48:00 PM   
Gunner98

 

Posts: 5508
Joined: 4/29/2005
From: The Great White North!
Status: offline
Thanks Wayne

Weird - also had an issue with using a capital 'T'! So true has to be all lower case.

Thanks


B

_____________________________

Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/

(in reply to stilesw)
Post #: 3
RE: Escort missions - 8/3/2018 4:37:57 PM   
stilesw


Posts: 1497
Joined: 6/26/2014
From: Hansville, WA, USA
Status: offline
I found that also. Also several cases where the Lua documentation names do not match what's needed such as in the unit wrapper - the example provided uses unit.class where you actually must use unit.classname. Just shows that the more complex the system the more "minor" glitches can occur.

-Wayne

(in reply to Gunner98)
Post #: 4
RE: Escort missions - 8/3/2018 11:18:56 PM   
michaelm75au


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

ScenEdit_AssignUnitToMission("582nd IAP #"..i, "Laage AB", escort=True)

The 'xxx=yyy' as a parameter is really only relevant to Lua tables. The core Lua interpreter usually works on specific keywords and is mainly case sensitive.
Where possible, table parameters are treated as case insenitive

_____________________________

Michael

(in reply to stilesw)
Post #: 5
RE: Escort missions - 8/4/2018 1:16:19 PM   
stilesw


Posts: 1497
Joined: 6/26/2014
From: Hansville, WA, USA
Status: offline
Thanks for the explanation. That helps.

-Wayne

(in reply to michaelm75au)
Post #: 6
RE: Escort missions - 8/4/2018 7:29:23 PM   
Gunner98

 

Posts: 5508
Joined: 4/29/2005
From: The Great White North!
Status: offline
Thanks for that

B

_____________________________

Check out our novel, Northern Fury: H-Hour!: http://northernfury.us/
And our blog: http://northernfury.us/blog/post2/
Twitter: @NorthernFury94 or Facebook https://www.facebook.com/northernfury/

(in reply to michaelm75au)
Post #: 7
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Lua Legion >> Escort missions 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

1.313