kts.Activate

Name

kts.Activate – activate a tile

Synopsis

kts.Activate()

result = kts.Can_Activate()

Description

When kts.Activate() is called, the creature found in cxt.actor will try to activate the tile found in cxt.tile (at position cxt.tile_pos). This essentially means that the on_activate function for the tile will be called.

kts.Can_Activate() returns true if it is currently possible to activate a tile, or false otherwise.

Return Value

kts.Activate() returns no meaningful value. kts.Can_Activate() returns a boolean.

Notes

kts.Activate and kts.Can_Activate are usually used as the action and possible functions (respectively) of a Control.

See Also

kts.Control

kts.Tile