Splitting Lua Script into Multiple Files
To split example ucm.lua
file into several files and use it in the blueprint follow the steps below.
#
Create Lua Directory- Create a new directory named
fw
. You can use another name if you wish. - Put into this directory two files
main.lua
andcommand.lua
.
Lua scrtip entry point
When you are using multiple files you should have main.lua
file as an entrypoint of your script.
- main.lua
- command.lua
#
Update Manifest FileUpdate communication_modules
section in manifest.yml
. Replace lua_file
section with lua
to set Lua directory:
Too learn more about lua
section see the reference.
#
Upload BlueprintNow you can upload the blueprint.