Your browser does not support JavaScript or its disabled!
Please turn it on, or be aware that some features on this website will not work correctly.
1.7K
Creature Distance from Player #104
Shows text on a creature with distance from player.
204b | 5 lines.
onCreaturePositionChange(function(creature, oldPos, newPos)
  if newPos == nil then return end
  if not creature:isCreature() then return end
  creature:setText(getDistanceBetween(pos(), newPos))
end)
- remove | + add

24 Aug 2022
Ads