CorsixTH Lua Documentation

SpawnAction Class

Declared on: line 21 of Lua/humanoid_actions/spawn.lua.
Inheritance: SpawnAction ยป HumanoidAction

Method Index

Member Index

(*) only used in superclass methods
function SpawnAction:SpawnAction(mode, point)

Spawn an entity.

Parameters:

NameTypeDescription
mode str Mode of spawning: "spawn" or "despawn"
point table or x or y or optional or direction Position and optional face direction of spawning or despawning.

Declared on: line 26 of Lua/humanoid_actions/spawn.lua.

function SpawnAction:setOffset(offset)

x or y offsets are used depending on the initial walk direction of the

newly spawned humanoid.

Parameters:

NameTypeDescription
offset table or x or y Position offset.

Declared on: line 41 of Lua/humanoid_actions/spawn.lua.