• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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