Posted on October 20, 2018
Some examples of how to loop thru units using Lua in order to change things like the mission they are assigned to, or the units loadout.
59 minutes of Lua code... so it went a little long.
Creating overlays with GMAP and using Photoshop to clean them up so they match the rest of the game map.
I wanted to make the ships leaving port take slightly different paths so we edit the waypoints using lua.
Fairly simple lua exaple of changing the course of a unit, adding events, triggers and actions.
Using Lua inside the game Command (CMANO) and how to use a function to return a value.
Some basics of using tables in Lua.
Using Lua inside the game Command (CMANO) to randomly move a ship/sub. Goes over creating the code and then how to wrap it into a Function for easier re-use.
Using Lua inside the game Command (CMANO) to dig thru a unit wrapper.