View Full Version : [SOLVED] Creature script
Hey, ive been trying for awhile now and cant figure it out, how does one make a creature attack another creature when spawned
and I cant do it by guid because its different every time.
DoCast(NPCENTRYID, SPELLID, true);
11-05-2015, 05:22 AM
You can use AttackStart(Unit*).
if (Creature* creature = creature->FindNearestCreature(entryId, 15, true))
11-05-2015, 07:54 AM
Too many creatures tommy.
The variable 'me' is the creature that owns the script. So you would use me->FindNearestCreature and me->AttackStart
What defines the other creature to attack?
I tried that but for some reason its still casting the spell on me as a player
11-05-2015, 02:48 PM
can you show the code?
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.