I need help for a trigger... once again. I am unable to create this condition to fire the trigger:
Fire trigger when no unit is in the vicinity of that unit type.
Well, I want that trigger to run when there is no unit, which can be any unit, nearby to a specific unit type. not only one unit, but one type. Do I have to make this via unit groups? But then, does this one particular unit from this unit type respond to that trigger, even if other units of the group do not match the condition (=units are nearby)?
I am too stupid to figure that out by my own... :/
Rollback Post to RevisionRollBack
If you want to see them cry
poke 'em in the eye.
Put their fingers in the socket and watch them fry.
Taxi drivers must die!
You can try making a region, then have a periodic event: every 1 second, move that region to your unit. Then check for conditions within that region. If there's no unit of certain type within that region, fire off your trigger.
Hmm, you could try making a new ability to give to your unit and set the ability autocast condition. In this case, put a tag on your supply depot to be 'hover' (as example). Then the ability autocasts when a 'hover' unit is in range.
Now under triggers, whenever the ability is executed, do your thing... that's one way to check if a unit comes into range of another.
(if than else) condition -> number of unit in unitgroup -> units in region matching condition -> (Number of Living units in (Any units in (Region((Position of (Picked unit)), 1.0)) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) == 0
I not really understand your question but if you want to use it for more units, use pick each unit -> on entire map....
also for the example I set the region for circle to region positioned to picked unit....