Module CorsixTH.CorsixTH.Lua.humanoid_actions.spawn

Spawn an entity.

Functions

SpawnAction:setOffset (offset) Set the offset of spawning.


Functions

SpawnAction:setOffset (offset)
Set the offset of spawning.

These two values specifies how many tiles away the humanoid should start walking before actually spawning in the destination tile. Default is x and y values are 2, and should not be set less than or equal to 0. Only one of x or y offsets are used depending on the initial walk direction of the newly spawned humanoid.

Parameters:

  • offset (table x, y) Position offset.

Returns:

    (action) Return self for daisy chaining.
generated by LDoc TESTING Last updated 2015-01-01 12:00:00