NPC Code:function onActionCalled(currentX, currentY) { temp.curList = findnearestplayers(temp.currentX, temp.currentY); for (temp.curPlayer: temp.curList) { //stuff } }
function onActionCalled(currentX, currentY) { temp.curList = findnearestplayers(temp.currentX, temp.currentY); for (temp.curPlayer: temp.curList) { //stuff } }