Skip to content

Scripting

Philip Diffenderfer edited this page Dec 13, 2023 · 2 revisions

Requirements

  • A script gets defined and can be applied to an entity.
  • A script can define which components are required for the script, and if they don't exist they are added to the entity.
  • There are functions that can be overridden (onStage, onLive, onUpdate, onRemove)
  • Local variables can be defined outside of functions, that's the script state. This can be set by editor
  • Functions can be defined, private & public ones.
  • You can get other entities, their values, etc.
  • You can define events to emit. The editor can drag a function implementation to an emitted event for an instance.
  • You can define pointers to certain things (like another entity) and the editor allows you to drag an entity to that pointer.

Clone this wiki locally