Script Events
Scripting in O3DE is designed around event-driven paradigms. Rather than directly accessing information from a given entity or one of its components, you use events to send and receive information and take action in a decoupled environment.
Like entities and components, scripts can use events to communicate with each other. These events are called script events.
To author script events, use the Asset Editor or Lua. Script Canvas and Lua can send or receive the events that you create. In Script Canvas, you can add nodes that send or receive script events. Events sent from Script Canvas can be handled in Lua. Likewise, events sent from Lua can be handled in Script Canvas.
Prerequisites
To use script events, you must enable the Script Events Gem in your project.
Creating Script Events
Learn how to create script events in Open 3D Engine (O3DE).
Using Script Events in Script Canvas
Learn how to use script events with Script Canvas in Open 3D Engine (O3DE).
Using Script Events in Lua
Learn how to use script events with Lua in Open 3D Engine (O3DE).
Best Practices
Learn best practices when using script events in Open 3D Engine (O3DE).