kts.Activate – activate a tile
kts.Activate()
result = kts.Can_Activate()
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.
kts.Activate()
returns no meaningful value. kts.Can_Activate()
returns a boolean.
kts.Activate
and kts.Can_Activate
are usually used as the action
and possible
functions (respectively) of a Control.