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

Trigger: How to chech is there ANY unit in a rect?

Status
Not open for further replies.
Level 12
Joined
Feb 13, 2009
Messages
388
Trigger: How to check is there ANY unit in a rect?

I am obviously missing some very simple thing... I can't find a way to check is there a unit in the region (I want to make a screept which "closes" automatic door when a unit leaves a rect near the door but only if there were no other units, like it's made in shops). I can't find an event for the condition, I do: boolean comparison -> Rect - Does region contain unit, but for unit there's no "Any unit" value...

P.S. I've just found that this is a WEUnlimited function which has Rect constains unit... It's not even in normal World Editor. How do I check is there any unit in a rectangle in a "normal" World Editor?
 
Last edited:
Level 12
Joined
Feb 13, 2009
Messages
388
I mean, can you give me the name of a function/parameter? I can't find it :).

Wow, thank you, it's there :). I wish I had a way to change the language of WEditor from russian to english, I can't follow most guides/tutorials because translators did weird things with function/option names :(.

P.S. To avoid new threads: what determines is there a "basement" under a unit? I.e. I've copied an "altar of kings" building and made a hero selector, and when I place it it places a "basement" underneath (terrain texture), how to avoid it?


About the general matter: solved.
 
Last edited:
Status
Not open for further replies.
Top