• 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!

C++ Game::internalMoveCreature usage

E

Evil Puncker

Guest
Hi everyone, I'm kinda breaking my head trying to understand how the Game::internalMoveCreature works, as I'm trying to add it here:

C++:
void Monster::onAttackedCreatureDisappear(bool)
{
    attackTicks = 0;
    extraMeleeAttack = true;

}

so the monster (this) starts going back to its getMasterPos() as soon as he loses the target, but as I never did something like this before, I would like to ask for some help, the function is the following:

C++:
ReturnValue Game::internalMoveCreature(Creature& creature, Tile& toTile, uint32_t flags /*= 0*/)

I don't know how to set the getMasterPos as the toTile destination...

any help is appreciated, thanks in advance
 
Last edited by a moderator:
Back
Top