HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

problem with repick system...

08-20-2004, 04:08 AM#1
Mete0ra
alright, here's my problem....
I have my repick system in place, and it works fine, except for one thing.
I want the hero and any other units removed from the game, and one wisp spawning back in the hero select. Except, when I summon something, then type
-repick, It removes the units fine, but spawns two wisps. I do know why, but I don't know how to prevent it. Here's my trigger:

Code:
repick red
    Events
        Player - Player 1 (Red) types a chat message containing -repick as An exact match
    Conditions
    Actions
        Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)
            Loop - Actions
                Unit - Remove (Picked unit) from the game
                Unit - Create 1 Wisp for Player 1 (Red) at (Center of redwisp <gen>) facing Default building facing degrees
               

any help is appreciated, thanks,
Mete0ra
08-20-2004, 04:14 AM#2
sweet5
put the create wisp outta the loop
08-20-2004, 04:23 AM#3
Mete0ra
why did i not think of this before.. thank you for realizing my stupidness