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:16 am]
NudeRaider -- files in c:\program files\ are protected
[08:11 pm]
Symmetry -- why can't I seem to make eud editor change flingy.dat D:
[04:33 pm]
Ultraviolet -- :wob:
[2026-7-10. : 11:00 pm]
Vrael -- :wob:
[2026-7-10. : 5:18 pm]
IskatuMesk -- :wob:
[2026-7-10. : 7:29 am]
Zycorax -- :wob:
[2026-7-10. : 3:48 am]
O)FaRTy1billion[MM] -- :wob:
[2026-7-10. : 3:14 am]
Symmetry -- :wob:
[2026-7-10. : 1:03 am]
IskatuMesk -- that's a loaded sentence if I ever snorted one
[2026-7-09. : 2:31 am]
Symmetry -- lot of 0s in them boxes, someone better hit it big
Please log in to shout.


Members Online: jun3hong