When following, after I get 10 steps away from the familiar, it teles to me, but whenever I teleport or move out of an area immedietly, it never spawns back.
Will give credits in my project, and rep++
This is what moves it.
Code:
if(familiar(i)) {
if(!goodDistance(npcs[i].absX, npcs[i].absY, playerX, playerY, 10)) {
npcs[i].isDead = true;
npcs[i].applyDead = true;
Summoning.spawnFamiliar(c, c.familiarID);
npcs[i].underAttackBy2 = -1;
npcs[i].dirUpdateRequired = true;
npcs[i].getNextWalkingDirection();
}
}