Hello, if iv been trying to return the region of a unit with a trigger but with no luck. The unit that uses an ability can be anywhere on the map so im trying to make it dynamically (i dont want to specify the region)
I think you want to get the AOE region of the targetting nuke ?
I guess there's no direct function to get it. Your best bet is take the nuke radius from the data editor (which is around 5 or 6) Then construc your own region from the origin point (triggering ablitiy target point) and the radius into a circle region.
For example if the a ghost launches a nuke attack, then the idea would be to send say 2 banshess to that region the ghost is in and kill the ghost.
Im not having a problem sending banshees to a specific area. But i am having problems locating the region the ghost is in.
(Obvisouly my idea is to have the map completly divided into many regions)
"I think you want to get the AOE region of the targetting nuke ?"
that could be nice work around, but wouldnt it be too late?, would it also work if no actuall unit is being targeted since nukes dont need to hit a builing or unit straight on?
Well I assume you want the nuke radius since the unit you can get a specific point, no region needed. just use position of triggering unit in your unit use ability trigger to order banshee attack move to
Hello, if iv been trying to return the region of a unit with a trigger but with no luck. The unit that uses an ability can be anywhere on the map so im trying to make it dynamically (i dont want to specify the region)
Even - Unit - Uses Ability Nuke
any ideas ? Cheers!
Solution:
Big Thanks!!
Wich region do you mean?
Cheers
Then
@swaty007: Go
I think you want to get the AOE region of the targetting nuke ?
I guess there's no direct function to get it. Your best bet is take the nuke radius from the data editor (which is around 5 or 6) Then construc your own region from the origin point (triggering ablitiy target point) and the radius into a circle region.
ah, that would be the region the unit is in.
For example if the a ghost launches a nuke attack, then the idea would be to send say 2 banshess to that region the ghost is in and kill the ghost.
Im not having a problem sending banshees to a specific area. But i am having problems locating the region the ghost is in. (Obvisouly my idea is to have the map completly divided into many regions)
cheers!
"I think you want to get the AOE region of the targetting nuke ?"
that could be nice work around, but wouldnt it be too late?, would it also work if no actuall unit is being targeted since nukes dont need to hit a builing or unit straight on?
cheers!
Well I assume you want the nuke radius since the unit you can get a specific point, no region needed. just use position of triggering unit in your unit use ability trigger to order banshee attack move to
@progammer: Go
i think it would be like,
AH! brilliant, yea i trashed the region thing! Point is much better.
it does seems that istead of creating 3 banshes it creats a like 12, but thats a minor issue!
cheers guys!!
@swaty007: Go
To fix that, change the stage in the event from "Generic1 - Any Stage" to a certain stage like "Generic - Execution".