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:
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:
I don't know how to set the getMasterPos as the toTile destination...
any help is appreciated, thanks in advance
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: