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.
[2026-9-14. : 3:21 pm]
Oh_Man -- Racoon City Remastered*
[2026-9-14. : 3:21 pm]
Oh_Man -- Join the front line SEN, DEFEND MANKIND. 2030 is just a number! https://scmscx.com/map/2fHHj96p
[2026-9-14. : 3:21 pm]
Oh_Man -- from the maker of the legendary Architect RPG, the peerless Racoon City, the capitvating One Piercing Note, comes another creation minutes in the making
[2026-9-14. : 11:15 am]
Oh_Man -- heh heh thanks for the minerals suckers, now it's time to quit while i'm ahead
[2026-9-14. : 1:01 am]
Oh_Man -- Heroes of the Storm literally died and was revived before we got next SC game. Wb Loveless, u cooking any UMS for us?
[2026-9-13. : 11:35 pm]
LoveLess -- getting diablo 5 and wow 4 before starcraft ghost
[2026-9-13. : 9:22 pm]
RIVE -- To be fair, I used to post custom emotes back when I still used the forums.
[2026-9-13. : 12:54 pm]
l)ark_ssj9kevin -- RIVE
RIVE shouted: 💯
holy shit did you just use an emoji on SEN that feels illegal 🍆
[2026-9-13. : 10:24 am]
Moose -- Heinermann
Heinermann shouted: new era of SC and it's just some shooter they're gonna cancel before 2030
StarCraft 2: Ghost 2, The Reghostening
[2026-9-13. : 3:38 am]
Symmetry -- :wob:
Please log in to shout.


Members Online: DarkenedFantasies, Heinermann