Kaev
Super Moderator
Hiho Emudevs,
I could fix my last problem, because Tommy helped me. (Thanks again!)
Now i've got another one.
I'm looking for a method to stun the player, that means the player shouldn't be allowed to move, autoattack, cast, use items etc.
While he's stunned, i want to play an emote, so i cant just stun him by a spell.
I've already tried following:
player->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE);
player->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED); (Or something like stunned, forgot the name)
UNIT_FLAG_DISABLE_MOVE = Player can still do everything (Am i using it wrong?)
UNIT_FLAG_STUNNED = Player cant walk to the sides, just forward and backwards (Wtf? Why?!)
I hope you guys can help me again.
~Kaev
EDIT:
I've fixxed it already.
I used the following Spell as a aura and cancelled it with an BasicEvent after some seconds: http://wotlk.openwow.com/spell=52165
I could fix my last problem, because Tommy helped me. (Thanks again!)
Now i've got another one.
I'm looking for a method to stun the player, that means the player shouldn't be allowed to move, autoattack, cast, use items etc.
While he's stunned, i want to play an emote, so i cant just stun him by a spell.
I've already tried following:
player->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE);
player->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_STUNNED); (Or something like stunned, forgot the name)
UNIT_FLAG_DISABLE_MOVE = Player can still do everything (Am i using it wrong?)
UNIT_FLAG_STUNNED = Player cant walk to the sides, just forward and backwards (Wtf? Why?!)
I hope you guys can help me again.
~Kaev
EDIT:
I've fixxed it already.
I used the following Spell as a aura and cancelled it with an BasicEvent after some seconds: http://wotlk.openwow.com/spell=52165
Last edited: