• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

doMoveTo(Position target)

Oskar1121

Excellent OT User
Joined
Jul 15, 2009
Messages
634
Reaction score
537
Location
Poland
How can I force a monster to move to a given position?
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);
}
And this does not work, why? Into npc.cpp will work good, on NPCs.

- - - Updated - - -

Anyone?
 
Back
Top