Writing Lua Scripts
Open 3D Engine (O3DE), the successor to Lumberyard, is now available in Developer Preview. Download O3DE |
Topics
You can use Lua in Lumberyard to facilitate quick iteration of your game project. Lua is a powerful, fast, lightweight, embeddable scripting language. When you construct new gameplay and game systems, you can run your changes immediately, without compiling your source code.
Learning Lua
For learning the Lua language itself, the lua.org
-
Official Lua Documentation
– Provides a central location for information about Lua, including a Getting started page. -
Programming in Lua
– This text is a resource for getting started with Lua programming. -
Lua 5.1 Reference Manual
– Provides a reference of all the functions that are available by default in Lua.
Learning Lua in Lumberyard
After you read through this tutorial on writing Lua scripts for the component entity system, learn more about using Lua in Lumberyard by consulting the following resources.
-
For information on Lumberyard's built-in Lua editor, see Lua Editor.
-
For sample Lua scripts, see the Lumberyard
\dev\SamplesProject\Scripts
directory and its subdirectories. -
For information about Lua API operations in Lumberyard, see the Component Entity Lua API Reference.
-
For information about the Lumberyard EBus, see Working with the Event Bus (EBus) system.