• 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!

[General] "A unit enters a region"

Status
Not open for further replies.
Level 4
Joined
Jan 17, 2018
Messages
112
Hi all,

I got the title part to work, but I want to modify "A unit" to 2 units,3 units,4 units...you get the picture. I'm sure this is under "conditions", but I'm still a big noob and don't understand coding language so all that jargon of booleans, etc don't make sense to me.
 
Building off this, you can check for the number of units in the region (as a condition) if you don't want to set up your own variable to count.
No you cannot. You can only check the number of units in the rect that was used by the GUI event wrapper to fill the region. This region usually represents a different area of the map from the rect it was made.
(Number of units in (Units in Region)) Equal to (Integer)
This leaks a unit group. Additionally the entering unit might not be returned in that group for the reason mentioned above.

The only way is to use a counter to track the number of units that entered the region. Another trigger is needed to track the number of units leaving the region.
 
Status
Not open for further replies.
Back
Top