Staredit Network > Forums > SC2 Assistance > Topic: Grabbing regions attached to Units
Grabbing regions attached to Units
Feb 28 2011, 11:47 pm
By: playpong  

Feb 28 2011, 11:47 pm playpong Post #1



Is there a way to essentially do this?

Unit - Create 1 Auto-Turret for player (Killing player) at (Center of Region Attached to (Dying Unit)) facing (Random angle) degrees (Ignore placement)

I can't seem to find a way to call the Region that's attached to the dying unit.. just the unit that's attached to a specified region.

Any thoughts?



None.

Mar 1 2011, 2:34 am Roy Post #2

An artist's depiction of an Extended Unit Death

Don't bother with the region. You just need the point of the dying unit, correct? Regions shouldn't be handled if you're just concerned with a specific point.

DeadUnitReplaced
    Events
        Unit - Any Unit dies
    Local Variables
        DeathPoint = (Position of (Triggering unit)) <Point>
    Conditions
        (Unit type of (Triggering unit)) == Auto-Turret
    Actions
        Unit - Create 1 Auto-Turret for player (Killing player) at DeathPoint facing (Random angle) degrees (Ignore Placement)


If you need an area of the region for some other reason, you can create it dynamically using "Convert Circle to Region" or "Convert Rectangle to Region."




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:05 pm]
NudeRaider -- DarkenedFantasies
DarkenedFantasies shouted: you eat lots of beans
:lol:
[11:30 am]
NudeRaider -- I would like 3000 minerals, please
[2026-4-16. : 7:32 pm]
Zoan -- I got $2000 bonus. I would like 2000 minerals, please
[2026-4-16. : 4:15 am]
DarkenedFantasies -- you eat lots of beans
[2026-4-16. : 3:46 am]
IskatuMesk -- how do i get gas
[2026-4-15. : 11:43 pm]
Moose -- you don't
[2026-4-15. : 10:06 pm]
Zoan -- how do i get minerals
[2026-4-14. : 11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
[2026-4-13. : 10:07 pm]
NudeRaider -- ya why phone people when you can just write letters
Please log in to shout.


Members Online: Zoan, Excalibur, Nekron