• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Q: how to do a head count on pick every unit action?

Status
Not open for further replies.
Level 5
Joined
Jan 2, 2013
Messages
84
im trying to do a head count detection when a unit enters a region. for example if i move 5 units to a rgeion, it will read that there are 5 units at that region.
is it possible to do a head count, my first though was pick every unit in a region in the unit group, but any other ideas or better options?

Okay, i found it. nvm. how i delete my post?
 
Level 12
Joined
May 22, 2015
Messages
1,051
I don't know if you can delete your own post. Though leaving that message there might inform a moderator to delete it or something.

Anyway, you could count the units as the enter and leave the region, store that number in a variable, and display that however you planned to display it (floating text maybe). You might have to detect dying units - I don't know if they fire "unit leaves region" events.
 
Status
Not open for further replies.
Top