kts.GetPos

Name

kts.GetPos – get the position of a creature

Synopsis

result = kts.FunctionName(creature)

Description

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.

Return Value

Either nil, or a table containing an x and a y co-ordinate.

Errors

If the input is neither nil nor a valid Creature userdata object, an error is generated.

See Also

kts.IsAlive