- 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?
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: