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:35 pm]
Symmetry -- though mine's probably worse
[03:35 pm]
Symmetry -- That certainly sounds similar to what I've made
[06:28 am]
Ultraviolet -- sounds like Bound & Defend
[07:43 pm]
Symmetry -- If you take the reins you damn well be ready to ride
[2026-5-23. : 2:46 pm]
NudeRaider -- you wish
[2026-5-23. : 12:43 am]
IskatuMesk -- Ah, so Reindeer Breeding 3: BDSM edition.
[2026-5-22. : 12:45 am]
Moose -- tbh
[2026-5-20. : 8:27 pm]
Symmetry -- It's a bound map where you cross obstacles to earn units to defend your base
[2026-5-20. : 8:16 pm]
Symmetry -- No, the world isn't ready for that
[2026-5-20. : 5:11 pm]
Zoan -- Reindeer Breeding 3?
Please log in to shout.


Members Online: RIVE, IskatuMesk, O)FaRTy1billion[MM], Symmetry