Stage Event

From BerryBots Wiki
Jump to: navigation, search

A type of event that a stage can send to a ship. It is sent through the Admin object with admin:sendEvent(ship, event). The event can be any native Lua value: number, string, boolean, nil, or table of any combination of these types, including nested tables. A ship can retrieve them from the Sensors object with sensors:stageEvents(). Since these values can be anything, a ship needs to be designed to understand the event format used by the stages it is run on.

Among the Sample Stages, sample.arcadeshooter uses Stage Events to communicate with its Stage Ships and sample.drift uses them to send events to both stage and player ships.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox