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

Kill unit from player (killing all units if a building is destroyed)

Status
Not open for further replies.
Level 5
Joined
May 11, 2008
Messages
93
Well that Trigger i had too but it didnt work.
trigger1gq3.jpg
 
Level 17
Joined
Nov 18, 2008
Messages
1,538
That event will only fire off once right when the game starts. You have to change it to the Event like Day-Elven said.
Unit - Naga Main Castle 0003 <gen> dies
 
Level 4
Joined
Nov 10, 2007
Messages
56
This is an example if Town Hall gets destroyed all units owned by Player 1 will die.
  • Trigger
    • Events
      • Unit - Town Hall Dies
    • Conditions
    • Actions
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Unit - Kill (Picked unit))
 
Status
Not open for further replies.
Top