Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

[Q] LUA snippets

 
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 >> Tech Support >> [Q] LUA snippets Page: [1]
Login
Message << Older Topic   Newer Topic >>
[Q] LUA snippets - 12/18/2014 9:52:10 AM   
AlexGGGG

 

Posts: 685
Joined: 9/25/2014
Status: offline
Any chance we can have a collection of LUA snippets, or maybe there is one already, but I can't seem to be able to find it?

I have just started looking around creating scripts, and wanted something I thought to be simple, as in "assign all aircraft on mission X to mission Y", and I can't even figure out how to start.

Normally I thought I would somehow enumerate all aircraft currently assigned to mission, and for each of those reassign it, but how?

< Message edited by Sunburn -- 1/2/2015 8:37:37 AM >
Post #: 1
RE: LUA snippets - 12/18/2014 11:00:21 AM   
Tomcat84

 

Posts: 1943
Joined: 7/10/2013
Status: offline
Baloogan's Lua wiki has a lot of explanations and also links to my Lua video tutorials, Ckfinite's tutorials and also to this page:

http://commandlua.github.io/

It has a lot of useful stuff.

I dont think there currently is a way to say "All units assigned to mission X", but thats not a bad idea. I'll pass it on to Baloogan (one of the devs heavily involved with the Lua part)

btw Lua is not an acronym for anything so it doesnt have to be all caps :)

< Message edited by Tomcat84 -- 12/18/2014 12:01:02 PM >


_____________________________

My Scenarios and Tutorials for Command

(Scenarios focus on air-warfare :) )

(in reply to AlexGGGG)
Post #: 2
RE: LUA snippets - 12/18/2014 5:29:15 PM   
AlexGGGG

 

Posts: 685
Joined: 9/25/2014
Status: offline
Ah and I guess no wildcards as well, like, have multiple aircraft go by same callsign and then operate on groups of aircraft?

So if want to assign two units to mission, that's strictly two calls to AssignUnitToMission(), correct?
Like no way to do

ScenEdit_AssignUnitToMission('SEAD*', 'Mission1')

to select all aircraft with callsigns starting with SEAD?

(in reply to Tomcat84)
Post #: 3
RE: LUA snippets - 12/18/2014 8:55:02 PM   
ckfinite

 

Posts: 377
Joined: 7/20/2013
Status: offline
Not yet, I hope to have library support for that in the near future, however.

(in reply to AlexGGGG)
Post #: 4
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> [Q] LUA snippets 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.117