Dev » Lua API Reference

Stranded III - Lua API Reference

Welcome to the official Lua API reference for Stranded III. Lua scripts can manipulate world objects, interact with game entities, manage inventory, execute timers, display dialogues, control scene nodes, and respond to engine hooks. Select a class or module below to view its properties, methods, parameter signatures, return types, and code examples.

24 Classes & Modules 414 Total Methods & Properties
No classes match your search query. Try searching for another class name or keyword.

Debug (1)

debug Debug

3D spatial debug drawing (lines, rays, arrows, shapes, volumes, text, gizmos) and 2D screen text overlay.

Definitions & Systems (6)

attributedef Definitions & Systems

Attribute definition descriptor (health, stamina, hunger, thirst, etc.).

building Definitions & Systems

Construction and building site system hooks and definitions.

materialdef Definitions & Systems

Material definition descriptor for physical and visual material properties.

randomevent Definitions & Systems

Random world event definition system and lifecycle hooks.

state Definitions & Systems

Active status effect instance attached to an entity.

statedef Definitions & Systems

Status effect definition descriptor and event callbacks.

Dialogue (3)

dialogue Dialogue

Dialogue container managing narrative conversations, branching, and UI playback.

dialoguestep Dialogue

Individual dialogue graph step (narrative, NPC speech, choices, branch, delay).

dialoguesteptype Dialogue

Enumeration constants for dialogue step types.

Effects & Audio (1)

fx Effects & Audio

Global module for screen transitions, 3D particle visual effects, sound effects, and music playback.

Localization (1)

loca Localization

Localization key lookups and string parameter formatting.

Math (7)

aabb Math

3D Axis-Aligned Bounding Box for spatial queries, bounds calculation, and collision.

color Math

RGBA color representation with channels between 0.0 and 1.0.

gradient Math

Color gradient ramp with configurable keyframe points.

quaternion Math

Quaternion representation for 3D orientations and rotations without gimbal lock.

vector2 Math

2D vector representing points, offsets, UV coordinates, or directions.

vector3 Math

3D vector representing world positions, velocities, scales, or Euler angles.

vector4 Math

4D vector representing 4-component coordinates or parameters.

Scene & Nodes (1)

node Scene & Nodes

Godot Node scene hierarchy wrapper for transforms, meshes, materials, and children.

World & Entities (4)

entity World & Entities

Core entity object and global entity management (spawning, hierarchy, attributes, states, events).

entitydef World & Entities

Entity definition descriptor and registry lookups.

player World & Entities

Local player queries and character access.

terrain World & Entities

Terrain height, slope, normal, control map, and texture layer queries.