How do i do so a npc start to attack a other npc? plz say
Or make so the npc don't attack anything lie Unit:Stopattack () or something..
How do i do so a npc start to attack a other npc? plz say
Or make so the npc don't attack anything lie Unit:Stopattack () or something..
Last edited by mariobox; 09-19-2010 at 05:58 AM.
X:AttackReaction(Y, 1, 0)
X being the unit your telling to attack Y.
X:WipeTargetList()
Should reset the aggro.
can you say that clearly?
I believe he did.
It's as clear as I can make it. Example of use:
function Z(pUnit)
if NPC_B ~= nil then
pUnit:AttackReaction(NPC_B, 1, 0)
end
end
function Reset(pUnit)
pUnit:WipeTargetList()
end
danke!!!!!!!!!!!!!!!!!!!!!!