LUA Resources

All discussions & material related to Command's Lua interface

Moderators: michaelm75au, angster, RoryAndersonCDT, MOD_Command

Post Reply
User avatar
tjhkkr
Posts: 2431
Joined: Wed Jun 02, 2010 11:15 pm
Contact:

RE: LUA Resources

Post by tjhkkr »

.
Remember that the evil which is now in the world will become yet more powerful, and that it is not evil which conquers evil, but only love -- Olga Romanov.
User avatar
z1812
Posts: 1575
Joined: Wed Sep 01, 2004 12:45 pm

RE: LUA Resources

Post by z1812 »

Thanks for your replys.
KnightHawk75
Posts: 1850
Joined: Thu Nov 15, 2018 7:24 pm

RE: LUA Resources

Post by KnightHawk75 »

Video Tutorials related to LUA and Event system:

TitaniumTrout's videos on Event sub system
fb.asp?m=4807164

Whicker's Lua basics tutorial and examples
fb.asp?m=4583374
thewood1
Posts: 9915
Joined: Sun Nov 27, 2005 6:24 pm
Location: Boston

Re: LUA Resources

Post by thewood1 »

I have found this a useful repository. I think a focus on expanding this repository would be a very good thing for new and middling users of CMO's lua capability.

https://wiki.weaponsrelease.com/index.p ... Repository

I have used a number of these in things I have been building.
User avatar
blu3s
Posts: 975
Joined: Fri Jul 08, 2022 9:45 am

Re: LUA Resources

Post by blu3s »

I made a small guide on how to set up a scenario to start using Lua in it. I leave it here in case someone might find it useful. Any suggestion don't hesitate to tell me

Lua Scen Setup


I also take this opportunity to share this github where, among other things, lua code snippets are uploaded.

https://github.com/GrandStrategos/Command_Resources
Parel803
Posts: 932
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Re: LUA Resources

Post by Parel803 »

Thank you
ragards GJ
User avatar
blu3s
Posts: 975
Joined: Fri Jul 08, 2022 9:45 am

Re: LUA Resources

Post by blu3s »

I have uploaded a function that I use a lot when I create scenarios with Lua. It is TimeEvent and as the name suggests, it creates/modifies/deletes a Time Event in CMO with a time trigger and a lua action. You can see it here:

https://github.com/GrandStrategos/Comma ... eEvent.lua

And an example of use with some radars turning ON/OFF at different times can be found here:

https://github.com/GrandStrategos/Comma ... rEMCON.lua
Parel803
Posts: 932
Joined: Thu Oct 10, 2019 3:39 pm
Location: Netherlands

Re: LUA Resources

Post by Parel803 »

nice, thanks for sharing
regards GJ
User avatar
blu3s
Posts: 975
Joined: Fri Jul 08, 2022 9:45 am

Re: LUA Resources

Post by blu3s »

I have written a couple of tutorials on how to take advantage of the new web engine in the beta as a scenario designer

The first is to create your own mailbox. In this way, the player will have access to all messages sent to him during the course of the scenario.

https://github.com/blu3ser/LuaTutorials ... dow%20HTML

Image

The second one is a AirOps status that just display some info about your Air Units. You can filter by units or by missions.
https://github.com/blu3ser/LuaTutorial ... dow%20HTML

Image


The flexibility with the new web engine is huge and I hope it will allow us to do cool things in new design scenarios!
Post Reply

Return to “Lua Legion”