How can I force a monster to move to a given position?
I've:
creature.cpp:
And this does not work, why? Into npc.cpp will work good, on NPCs.
- - - Updated - - -
Anyone?
I've:
creature.cpp:
PHP:
void Creature::doMoveTo(Position target)
{
std::list<Direction> listDir;
if(!g_game.getPathToEx(this, target, listDir, 1, 1, true, true, g_config.getNumber(ConfigManager::DEFAULT_DESPAWNRADIUS)))
return;
startAutoWalk(listDir);
}
- - - Updated - - -
Anyone?