• 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.

How do i remove an unit from game?

Status
Not open for further replies.
Level 19
Joined
Feb 15, 2008
Messages
2,184
  • Pudge
    • Events
      • Player - Player 2 (Blue) types a chat message containing -op as An exact match
      • Player - Player 2 (Blue) types a chat message containing -pudge as An exact match
    • Conditions
    • Actions
      • Unit - Remove (Picked unit) from the game
I wana remove specific unit from game. From my tavern.

For example i have 2 heroes in my tavern how do i remove 1 of them?
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
Set the units to variables, and use this trigger. Unit1 and unit2 are unit variables containing your units.

  • Untitled Trigger 039
    • Events
      • Player - Player 1 (Red) types a chat message containing -op as An exact match
      • Player - Player 1 (Red) types a chat message containing -pudge as An exact match
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Substring((Entered chat string), 1, 3)) Equal to -op
        • Then - Actions
          • Unit - Remove unit1 from the game
        • Else - Actions
          • Unit - Remove unit2 from the game
 
Status
Not open for further replies.
Top