SpawnAction Class
Method Index
- afterLoad(old, new) (inherited from HumanoidAction)
- disableTruncate() (inherited from HumanoidAction)
- setAfterUse(after_use) (inherited from HumanoidAction)
- setCount(count) (inherited from HumanoidAction)
- setIsLeaving(is_leaving) (inherited from HumanoidAction)
- setLoopCallback(loop_callback) (inherited from HumanoidAction)
- setMustHappen(must_happen) (inherited from HumanoidAction)
- setOffset(offset)
- setUninterruptible(uninterruptible) (inherited from HumanoidAction)
Member Index
- after_use (*)
- count (*)
- idle_must_happen (*)
- is_entering (*)
- is_leaving (*)
- loop_callback (*)
- mode
- must_happen (*)
- name (*)
- no_truncate (*)
- offset
- point
- saved_must_happen (*)
- state (*)
- uninterruptible (*)
function SpawnAction:SpawnAction(mode, point)
Spawn an entity.
Parameters:
| Name | Type | Description |
|---|---|---|
| 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:
| Name | Type | Description |
|---|---|---|
| offset | table or x or y | Position offset. |
Declared on: line 41 of Lua/humanoid_actions/spawn.lua.