• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your 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
87
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?
 
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.
Back
Top