Skip to content

SpawnFromTableAction ​

Inherits: EventAction < Resource

Rolls a spawn table and makes what comes up at a place, once: an ambush from the bushes, a pack that runs out of the cave when a lever is pulled, loot that drops from the ceiling. The things made are ordinary things of the world (like those of the Spawn Entity and Spawn Interactable actions): no spawner keeps them, and the game saves them. See docs: World > Spawn tables.

Properties ​

intspawn_table_id0
Vector3spawn_positionVector3.ZERO
introlls1
floatspread_radius0.0

Variables ​

Array[Node]spawned[]

Methods ​

Stringget_display_name()
Stringget_function_description()

Property descriptions ​

int spawn_table_id = 0 ​

The table to roll (Database > World > Spawn Tables)

Vector3 spawn_position = Vector3.ZERO ​

Where the things appear

int rolls = 1 ​

How many times the table is rolled

float spread_radius = 0.0 ​

Spread the things over a disc of this radius (metres) round the place, so several rolls do not stand on each other. 0 = all at the place

Variable descriptions ​

Array[Node] spawned = [] ​

What the action made.

Method descriptions ​

String get_display_name() ​

Return the display name of this Action

String get_function_description() ​

Return a description of this action with parameter placeholders