kts.GetPos – get the position of a creature
result = kts.FunctionName(creature)
Given a Creature, this function returns the creature's current position, or nil
if the creature is no longer in the map (e.g. it has been killed).
If the creature
is nil
, then nil
is returned.
Either nil
, or a table containing an x
and a y
co-ordinate.
If the input is neither nil
nor a valid Creature userdata object, an error is generated.