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

Removing leavers from game

Status
Not open for further replies.
Level 7
Joined
Apr 7, 2009
Messages
241
In my ORPG I want the leavers heroes to be removed from the game, I've tried lots of different triggers and nothing works. Something like this should be mega-simple with just one event and one action I know, but still I cant get it to work : /
 
  • Trigger1
  • Events
    • Player - Player 1 (Red) leaves the game
    • Player - Player 2 (Blue) leaves the game
    • Player - Pl.... and so on
  • Conditions
  • Actions
    • Custom script: set bj_wantDestroyGroup = true
    • Unit Group - Pick every unit in (Units owned by (Triggering Player)) and do (Actions)
      • Loop - Actions
        • Unit - Add a 0.01 generic expiration timer to (Picked unit)
        • Unit - Remove (Picked unit) from the game
 
Status
Not open for further replies.
Top