Arqade is a question and answer site for passionate videogamers on all platforms. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a trigger using the event Unit Enters/Leaves Range of Unit, but it seems to want a specific unit. For the sake of brevity (and saving time for me), how do i set the trigger to find a unit that enters range of any of a specific type of unit?

share|improve this question
up vote 1 down vote accepted

Are you sure you want to use a trigger for this? It sounds like the functionality you're looking for would work much better as an aura-like ability.

I've been fiddling with my SC2MapEditor -- I don't think there's a simple way to implement the ability with that event, as it's designed to work with a single unit. You might could try something with unitgroups, but even that returns only one (rather than all) of the units in the unitgroup.

It might also help if you informed us what you were trying to do.

share|improve this answer
I'm designing a map where instead of gathering resources directly, you control beacons which give you resources. Abilities might work, investigating... – RCIX Dec 5 '10 at 6:29
I meant informed us what you wanted the ability to do. Change ownership? – Raven Dreamer Dec 5 '10 at 6:39
What i basically want my unit to do is to change ownership then provide mineral production for the player that owns the unit, and also perhaps provide things like defensive buffs to the owning player's units. – RCIX Dec 5 '10 at 6:54
Ok, i've rigged a system that will work for my needs except for 1 part: i need to make my units research an upgrade on command instead of being user-triggered. Is this possible? Edit: looks like that's doable. Now working on disabling a behavior on command. – RCIX Dec 5 '10 at 10:48
All right, after mucking with abilities for several hours last night, i gave up on that for now. I have a couple of trigger-related ideas that I want to try, then if those dont work i'll post on a mapping site ( to see if someone there can help me. – RCIX Dec 5 '10 at 23:35

I have been messing around in the editor and have done something similar to what you are trying to do. I found the best way to do this is to take a sensor tower and change nothing but the effect, its rather easy to change the effect to give out a certain number of minerals per minute etc.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.