• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Removing things

Status
Not open for further replies.
Level 3
Joined
Jan 4, 2010
Messages
42
Hi.

I'm making a TD map, but with different locations on the map.

So when you are done with one location I want all buildings and mobs on that location to be removed. I doesn't mater how just so they disappear.

And another thing. When you're done I want the camera to snap to the next location.

Thanks in advance.


-Ralme
 
Last edited:
I'm not shure if I understand you but:

when you want to remove all units in a rect , you have to pick every unit in this rect and remove the picked units
like that:
  • Actions
    • Set Temp_Group = (Units in your_rect<gen>)
    • Unit Group - Pick every unit in Temp_Group and do (Actions)
      • Loop - Actions
        • Unit - Remove (Picked unit) from the game
    • Custom script: call DestroyGroup(udg_Temp_Group)
and the camera

  • Actions
    • Set Temp_Point = (your_loc)
    • Player Group - Pick every player in (All players) and do (Actions)
      • Loop - Actions
        • Camera - Pan camera for (Picked player) to Temp_Point over 0.00 seconds
    • Custom script: call RemoveLocation(udg_Temp_Point)
hope I could help ;)
 
Its not important, but with this loop every player pans to your point
you can also use player 1 (or any other player) instead of picked player...
and then of course you dont need the loop...
 
Status
Not open for further replies.
Back
Top