Unit - Any Unit Enters a distance of 1.0 from Unit
my goal: to generalize the 'unit'
i'm making a 14 player game where units run into something and they collect it. 14 ultralisks don't fit into 'unit' very well =/
I could do each ultralisk individually but i'm using this event for different triggers as well and that could take days to complete.
what i'd like to see is : Unit - Any Unit Enters a distance of 1.0 from (Unit of unit type (ultralisk))
so the triggering unit walks too close to one of the ultralisks.. but i want to refer to the ultralisk that the triggering unit got too close to later in the trigger too.
This way you can also get the triggering unit (YourUnit) and the unit you got close to (Unit 1 of TempGroup)
That could get messy when the number of units for that is greater than 30 or so, maybe.
I am facing the same problem. Has anyone a better idea than creating triggers for every single unit? The problem is unit type variables cannot be selected from the "Unit - Any Unit Enters a distance of 1.0 from Unit" event
This may help/work havn't tested it myself but I dont see why not, could have other issues but its a start.
Add the event Unit Enter/Leaves Range of Unit (as you normaly would) Leave unit as Any Unit, set the state as you want, the range as you want, then double click on From Unit, now click on functions radio button, click on the Conversion catagory, select the Convert Preset to Unit and click ok.
Now double click on value, click on the Preset raido button and select Any Unit, give it a shot :)
I wanted to do something similar to this (but leaving a range instead of entering) and tried everything from leaving region/leaving distance to behaviors before settling on checking the distance every time a unit is issued a move order. That's a whole lot of excess of checking... works, though.
Hate to say it but it doesn´t work. For the moment i´ll create events for every single unit. I´ll come back to this problem later when i have reached more progress on my map. Anyways ... thx for trying to help!
Well darn your right it dosn't work just checked the preset and its custom script is set to null...what a bumer...but there still might be a way using presets to do this. I'm going to try something really quick and see if it works and let you know.
Unit - Any Unit Enters a distance of 1.0 from Unit my goal: to generalize the 'unit'
i'm making a 14 player game where units run into something and they collect it. 14 ultralisks don't fit into 'unit' very well =/
I could do each ultralisk individually but i'm using this event for different triggers as well and that could take days to complete.
what i'd like to see is : Unit - Any Unit Enters a distance of 1.0 from (Unit of unit type (ultralisk))
so the triggering unit walks too close to one of the ultralisks.. but i want to refer to the ultralisk that the triggering unit got too close to later in the trigger too.
HELP!
Uhm two possibilities I see here:
1) Make an event for every ultra :(
2) Make a peroidic trigger in the terms of:
This way you can also get the triggering unit (YourUnit) and the unit you got close to (Unit 1 of TempGroup)
That could get messy when the number of units for that is greater than 30 or so, maybe.
@s3rius: Go
"1) Make an event for every ultra :(" it is then... :( g,g
I am facing the same problem. Has anyone a better idea than creating triggers for every single unit? The problem is unit type variables cannot be selected from the "Unit - Any Unit Enters a distance of 1.0 from Unit" event
@petrov1: Go
This may help/work havn't tested it myself but I dont see why not, could have other issues but its a start.
Add the event Unit Enter/Leaves Range of Unit (as you normaly would) Leave unit as Any Unit, set the state as you want, the range as you want, then double click on From Unit, now click on functions radio button, click on the Conversion catagory, select the Convert Preset to Unit and click ok.
Now double click on value, click on the Preset raido button and select Any Unit, give it a shot :)
I don't think that works either, Quickshot.
I wanted to do something similar to this (but leaving a range instead of entering) and tried everything from leaving region/leaving distance to behaviors before settling on checking the distance every time a unit is issued a move order. That's a whole lot of excess of checking... works, though.
@Quickshot14: Go
Hate to say it but it doesn´t work. For the moment i´ll create events for every single unit. I´ll come back to this problem later when i have reached more progress on my map. Anyways ... thx for trying to help!
@petrov1: Go
Well darn your right it dosn't work just checked the preset and its custom script is set to null...what a bumer...but there still might be a way using presets to do this. I'm going to try something really quick and see if it works and let you know.
@Quickshot14: Go
give every ultralisk an aura which applies an invisible behavior.
@Clonze: Go
What you could try is this:
Events: Unit - Any Unit Enters a distance of 1 form (Triggering unit)
Conditions: (Unit type fo (Triggering unit)) = Your Unit