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

When a player leaves, how do you remove their unit?

Status
Not open for further replies.
Level 3
Joined
Jul 29, 2005
Messages
15
Just two questions to ask which im having trouble with. What triggers are used to remove a players unit when they leave the game? I know there is remove unit.. but there is no trigger saying Remove all units owned by player 1 (red) or something like that.. Can anyone give me some help ? :?


Now for my second question. How do you make the minimap in preview screens a picture instead of the actual map? I really need these answered fast for my new map.

Thanks,
1_weponman_1
 
Level 4
Joined
Dec 8, 2005
Messages
58
The first question is simple so hers your trigger...

Events
Player - Player 1 (Red) leaves the game
Player - Player 2 (Blue) leaves the game
Player - Player 3 (Teal) leaves the game
Player - Player 4 (Purple) leaves the game
Player - Player 5 (Yellow) leaves the game
Player - Player 6 (Orange) leaves the game
Player - Player 7 (Green) leaves the game
Player - Player 8 (Pink) leaves the game
Player - Player 9 (Gray) leaves the game
Player - Player 10 (Light Blue) leaves the game
Player - Player 11 (Dark Green) leaves the game
Player - Player 12 (Brown) leaves the game

Conditions
None

Actions
Unit Group - Pick every unit in (Units owned by (Triggering player)) and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)

You can Kill the units or just remove them, you could also show text to the remaining players that one player left do anything you want really this is the basic trigger. As for your other question I'v never done it but know that there are a few tutoials(<-can't spell :oops: ) on that so just search around and youll find one. Hope I helped.
 
Status
Not open for further replies.
Top