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.
[03:42 am]
RIVE -- Hellooooo, Nurse
[2026-6-03. : 4:19 pm]
NudeRaider -- Hello World!
[2026-6-01. : 4:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
[2026-5-31. : 8:29 pm]
Symmetry -- I made the marine shoot lasers and gave the medic a nonfunctional button
[2026-5-31. : 8:07 pm]
Ultraviolet -- Symmetry
Symmetry shouted: I did my first EUD thing today. Feels like me finding arsenal at age 8 again
haha for sure. in some ways it's even more exciting because you can play EUD maps on regular battle.net, don't need to convince someone to download your mod to play with you. what did you do?
[2026-5-31. : 6:47 pm]
Symmetry -- I did my first EUD thing today. Feels like me finding arsenal at age 8 again
[2026-5-31. : 3:20 pm]
l)ark_ssj9kevin -- le reddit
Please log in to shout.


Members Online: Excalibur