Page 1 of 1
Using the LUA console
Posted: Sun Mar 22, 2020 10:31 am
by Ed49601
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.
RE: Using the LUA console
Posted: Sun Mar 22, 2020 10:37 am
by Parel803
RE: Using the LUA console
Posted: Sun Mar 22, 2020 10:39 am
by KLAB
https://www.matrixgames.com/forums/tt.asp?forumid=1681
Follow this link.
Extensive LUA guidance tutorials etc.
Enjoy.
K
RE: Using the LUA console
Posted: Sun Mar 22, 2020 11:56 am
by exsonic01
I was also about to ask this, thanks for links.
RE: Using the LUA console
Posted: Mon Mar 23, 2020 4:09 pm
by Ed49601
Ok, I see those sites. I can't seem to find commands specifically for CMO.
RE: Using the LUA console
Posted: Mon Mar 23, 2020 4:22 pm
by thewood1
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
RE: Using the LUA console
Posted: Mon Mar 23, 2020 5:28 pm
by TitaniumTrout
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.
RE: Using the LUA console
Posted: Mon Mar 23, 2020 5:43 pm
by SeaQueen
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.
RE: Using the LUA console
Posted: Mon Mar 23, 2020 9:45 pm
by michaelm75au
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).
RE: Using the LUA console
Posted: Tue Mar 24, 2020 1:47 pm
by bearhunter007
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!