-
Notifications
You must be signed in to change notification settings - Fork 3
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 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 and how you can check for Input events