-
Notifications
You must be signed in to change notification settings - Fork 5
Component Script
Berke edited this page Jun 23, 2026
·
1 revision
The Script component represents a Lua script instance attached to an entity. It controls execution state and script source.
script.isValidReturns whether the script component is valid.
booleanscript.fileNameGets or sets the script file attached to the entity.
stringscript.fileName = "player.lua"script.enabledEnables or disables script execution.
booleanscript.enabled = falselocal script = entity.script
script.enabled = true
script.fileName = "enemy_ai.lua"