• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Record Number of Attacks.

Status
Not open for further replies.
Level 6
Joined
Mar 2, 2013
Messages
127
I need help figuring out how to record how many times a unit attacks.
The spell Creates a unit, and after 4 hits the unit dies.
I've tried event "a unit is attacked" but it doesn't record when that unit takes damage, instead its when he starts attacking.
There is this trigger event.
  • Trigger - Add to Hits <gen> the event (Unit - (Triggering unit) Takes damage)
But I'm not sure how to make it work.
 
This is GUI's way of doing it which is the one you currently asked for.

EDIT: Everything is there for a reason, to make it work without duplicating stuff as well avoiding event leaks.

If you are adding more then 16,000 units then you might want to move onto a different game engine.
 

Attachments

  • example and how to fix event leaks.w3x
    17.6 KB · Views: 80
Status
Not open for further replies.
Top