Staredit Network > Forums > SC2 Assistance > Topic: [Solved] Remove All Units
[Solved] Remove All Units
This topic is locked. You can no longer write replies here.
May 2 2010, 4:31 am
By: Swampfox  

May 2 2010, 4:31 am Swampfox Post #1



Could someone enlighten me in the ways of removing ALL of a type of unit for a certain player?

ex. Remove/Kill all (Marine) for Player (1)

In my tron game, I need the line to be removed after you die, which is comprised of a bunch of units :(



None.

May 2 2010, 4:05 pm Morphling Post #2



First create a variable with the type Unit group:
Code
Unit Group Variable = (Empty unit group) <Unit Group>

Next, in the trigger where you create your marines add this action after each creation:
Code
       Unit Group - Add (Last created unit) to Unit Group Variable

This is the action to remove the units:
Code
       Unit Group - Remove all units from Unit Group Variable




None.

May 2 2010, 11:02 pm Swampfox Post #3



Quote from Morphling
First create a variable with the type Unit group:
Code
Unit Group Variable = (Empty unit group) <Unit Group>

Next, in the trigger where you create your marines add this action after each creation:
Code
       Unit Group - Add (Last created unit) to Unit Group Variable
I was already experimenting with these things.

Quote from Morphling
This is the action to remove the units:
Code
       Unit Group - Remove all units from Unit Group Variable
Damnit. I saw that function, but I kind of figured it only removed the units from the VARIABLE, not the map....

I believe the above statement is correct. I think the units are only removed from the unit group, not the map.

EDIT: Ok wtf. For some reason, I'm having trouble adding units to my unit group. I really don't understand why none of this crap is working. Any ideas?


EDIT: Nvm.... I had unit group set to 'No Unit Group' instead of 'Empty Unit Group'. :><: Lock topic now if you wish.

Post has been edited 4 time(s), last time on May 3 2010, 2:34 am by Swampfox.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
Please log in to shout.


Members Online: Roy