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:32 pm]
lil-Inferno -- "I think they doubled these limits. (not dimensions)" -NudeRaider
[2026-7-30. : 7:12 am]
NudeRaider -- cwinowich
cwinowich shouted: guys does anyone know, what is the max unit limit on extended now ?
don't quote me on it, but I think they doubled these limits. (not dimensions)
[2026-7-30. : 7:10 am]
NudeRaider -- Ultraviolet
Ultraviolet shouted: these guys may as well be pissing in the wind
sounds liberating
[2026-7-30. : 4:43 am]
cwinowich -- i cant quite remember, and cant find it anywhere, 2400 or something? idk
[2026-7-30. : 4:43 am]
cwinowich -- guys does anyone know, what is the max unit limit on extended now ?
[2026-7-30. : 2:47 am]
Ultraviolet -- these guys may as well be pissing in the wind
[2026-7-29. : 12:59 pm]
Vrael -- 1
[2026-7-29. : 10:32 am]
NudeRaider -- too much text. i cant tell which one yuo want removed. tell me 1, 2 or 3 for the one you want to keep.
[2026-7-29. : 3:16 am]
Symmetry -- that is a serious crime
[2026-7-29. : 3:11 am]
O)FaRTy1billion[MM] -- right to jail
Please log in to shout.


Members Online: Moose