Skip to content

Lua Scripting

Nick Wagter edited this page Nov 13, 2021 · 13 revisions

Meduza Supports Lua Scripting here you can find how to use the LUA API provided by Meduza.


Entities

Entities are a big part of how the code structure of Meduza works so we provide some functions to interact with them.

Destroy an Entity

Destroying an Entity can be done by using the following function

_DestroyEntity(EntityID)

Example for destroying the playerEntity

_DestroyEntity(PlayerId)

Get Entity ID

Fetching EntityID by name can be done, by using the following function

_GetEntityByName(string)

Example when catching the player Entity

player = _GetEntityByName("Player")


Events

Events and how you can check for Input events

Input

Keys

Graphics


Math


Physics

Collision

Forces


Prefabs


Transform

Clone this wiki locally