Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Using the LUA console

 
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 >> Using the LUA console Page: [1]
Login
Message << Older Topic   Newer Topic >>
Using the LUA console - 3/22/2020 1:31:13 PM   
Ed49601

 

Posts: 8
Joined: 3/8/2020
Status: offline
Is there a tutorial or help pages on how to use the LUA for creating scenarios? I am a newby at this and have so many ideas for scenarios that I would like to create.
Post #: 1
RE: Using the LUA console - 3/22/2020 1:37:47 PM   
Parel803

 

Posts: 579
Joined: 10/10/2019
From: Netherlands
Status: offline
Maybe this help, newby myself
https://commandlua.github.io/
https://www.matrixgames.com/forums/tm.asp?m=3745517
https://www.matrixgames.com/forums/tm.asp?m=3784722
https://www.matrixgames.com/forums/tt.asp?forumid=1681

with regards

_____________________________


(in reply to Ed49601)
Post #: 2
RE: Using the LUA console - 3/22/2020 1:39:25 PM   
KLAB


Posts: 355
Joined: 2/27/2007
Status: offline
https://www.matrixgames.com/forums/tt.asp?forumid=1681
Follow this link.
Extensive LUA guidance tutorials etc.
Enjoy.
K

(in reply to Ed49601)
Post #: 3
RE: Using the LUA console - 3/22/2020 2:56:14 PM   
exsonic01

 

Posts: 1131
Joined: 7/26/2016
From: Somewhere deep in appalachian valley in PA
Status: offline
I was also about to ask this, thanks for links.

(in reply to KLAB)
Post #: 4
RE: Using the LUA console - 3/23/2020 7:09:12 PM   
Ed49601

 

Posts: 8
Joined: 3/8/2020
Status: offline
Ok, I see those sites. I can't seem to find commands specifically for CMO.

(in reply to exsonic01)
Post #: 5
RE: Using the LUA console - 3/23/2020 7:22:07 PM   
thewood1

 

Posts: 6529
Joined: 11/27/2005
Status: offline
Lua is a scripting language. Its not a CMO language. CMO uses it and a set of Lua functions the devs built to execute Lua with some specific CMO capabilities. You should watch a couple of the Lua tutorials to familiarize yourself with things like function calling, variable creation, etc.

But you can also execute simple Lua functions through the Lua console. For that, I would use the CMO/CMNAO documentation and examples.

This is a good place to start.

https://www.matrixgames.com/forums/tm.asp?m=4435326

(in reply to Ed49601)
Post #: 6
RE: Using the LUA console - 3/23/2020 8:28:44 PM   
TitaniumTrout


Posts: 374
Joined: 10/20/2014
From: Michigan
Status: offline
Check the wiki too : https://weaponsrelease.com/index.php/CMO_Main_Page#Editor

You can also open a scenario in the editor and see how the creator did it. Whenever I run into something neat or clever I always like to see how it was done.

_____________________________


(in reply to thewood1)
Post #: 7
RE: Using the LUA console - 3/23/2020 8:43:46 PM   
SeaQueen


Posts: 1451
Joined: 4/14/2007
From: Washington D.C.
Status: offline
There's the Command LUA functions and then there's the LUA language itself. Most people start off just doing simple things using Command's LUA functions, and become more and more sophisticated as the need arises.

(in reply to Ed49601)
Post #: 8
RE: Using the LUA console - 3/24/2020 12:45:27 AM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
Use the SE commands (with the Command Lua WIKI for the description of it) from the drop-down list to get a feel for the various functions with just base Lua commands (like print, if..then..else, etc).

_____________________________

Michael

(in reply to SeaQueen)
Post #: 9
RE: Using the LUA console - 3/24/2020 4:47:28 PM   
bearhunter007

 

Posts: 23
Joined: 3/11/2017
Status: offline
Ed49601

The "Lua Legion" is a great resource for developing your command lua skills. Apache85 has lots of code segments that you can copy and use and/or modify for your purposes.

Good luck!


(in reply to michaelm75au)
Post #: 10
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Using the LUA console 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.328