Data Types
The scripting engine uses Lua tables with specific entries to communicate information through function calls. This section defines the table structures to be used in scripts.
EntityEventDetails
GridPosition
Kinematics
PointLight
- class PointLight
Specifies a point light source attached to an entity.
- Radius: number
Radius of the light source as a multiple of the block size.
- Intensity: number
Intensity of the light source. Larger is brighter.
- Color: integer
RGB-packed color of the light source.
- PositionOffset: Vector3
Offset of the light source relative to the entity position, specified as a percentage of the sprite size. For example, an offset of (0.5, 0.5, 0.0) positions the light source in the center of the entity’s XY plane.