HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

What action checks to see if a unit is in a region?

01-25-2003, 05:15 PM#1
Silenkiller
What condition checks to see if a unit(s) is in a region?
I just cannot find this dang action. Can someone point me in the right direction?

Thanks in advance-

Silenkiller
01-25-2003, 05:56 PM#2
Magias
It's an event, not an action. Check in event, it's labeled "Unit - Unit Entered Region". To specifiy the unit you have to go to the conditions pull-down menu and find "Unit Comparison" or "Unit-Type Comparison". I hope this helps. :infth:
01-25-2003, 06:00 PM#3
Master-Mune
Quote:
Originally posted by Magias
It's an event, not an action. Check in event, it's labeled "Unit - Unit Entered Region". To specifiy the unit you have to go to the conditions pull-down menu and find "Unit Comparison" or "Unit-Type Comparison". I hope this helps. :infth:


This is right, however you can use an action to affect what happens, what exactly are you trying to do with a unit(s) entering a region?
01-25-2003, 06:34 PM#4
Silenkiller
Well.. i'm making a gate that actualy WORKS well lol. I need it to know when units are inside of the gate at all times..

By the way, it has to be a condition (dunno why i said acton.. sorrrry) to check if ANY unit is inside that region at any given time.

My condition right now to check if no units are in a region is
[region name] contains No Unit = True

But it doesnt work.
01-25-2003, 07:10 PM#5
Magias
So you're trying to see if there is no units in the [Region]?
Well..set the event as "Unit Enters Region" and Condition as "Unit Comparison".
In the unit comparison menu set it as:

(Triggering Unit) equal to No Unit.

This is the only thing I can think of..I hope this helps.
01-25-2003, 07:10 PM#6
Magias
So you're trying to see if there is no units in the [Region]?
Well..set the event as "Unit Enters Region" and Condition as "Unit Comparison".
In the unit comparison menu set it as:

(Triggering Unit) equal to No Unit.

This is the only thing I can think of..I hope this helps.
01-25-2003, 07:20 PM#7
Trav
Well you can use a Periodic Event if you like. What I would do is this:
Trigger 1
Unit Enters Region
Action: Turn on Trigger2
Action: Open Gate

Trigger 2
Periodic Event - Every 2 seconds (initially off, because I dislike periodic events)
Integer Condition: Number of Units in *Region* Matching *Your Condition* is Equal to zero.
Action: Close gate
Action: Turn off this trigger

Hope that helps
01-25-2003, 07:39 PM#8
Magias
Quote:
Originally posted by Trav
Well you can use a Periodic Event if you like. What I would do is this:
Trigger 1
Unit Enters Region
Action: Turn on Trigger2
Action: Open Gate

Trigger 2
Periodic Event - Every 2 seconds (initially off, because I dislike periodic events)
Integer Condition: Number of Units in *Region* Matching *Your Condition* is Equal to zero.
Action: Close gate
Action: Turn off this trigger

Hope that helps


Man, that worm on the internet is slowing everything down and it processed my post two times. Sorry about that. Well, I agree with that Trav but he was saying something about checking if there were no units in the (region). Good idea anyways.
01-25-2003, 09:39 PM#9
Dinadan87
It's more complicated then you making it. It doesn't need to check if the unit stays in the gate area t keep it open. Simply have Unit enters region to open the gate, and unit leaves region followed by a check to see if any units are still in the region to close the gate. You would also need to check if the unit dies in that region actually...... I don't know if it dying triggers "leaving region"
01-25-2003, 11:06 PM#10
Magias
Didn't think of that....
01-26-2003, 12:28 AM#11
DaKaN
Boolean comparasion

Unit In Region (Region) Contains (Unit)

its there
01-26-2003, 12:35 AM#12
fr0ggE
yeah, really, thanks Dakan. I don't know what they were talking about, as I was sure there was a condition.

fr0ggE