Jump to content

[question] Threatlist


Recommended Posts

i iterate over the threatlist and do this:

                                        if (target)
                                       {
                                               m_creature->getThreatManager().getThreatList().remove((*itr));
                                               break;
                                       }

but the npc follows the just removed player inspite of it, how is this possible and what must i do against it?!? even if i set the threat of *itr to 0.0f the npc follows *itr even if other players are there with much higher number of threat! oh... btw... it's out of our scripts for a bossfight. if i remove one out of the threatlist the npc should aggro the next highest on the list, or isn't it so!?

Link to comment
Share on other sites

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use