SC2Mapster Forums

Development > Triggers

player leave, remove ALL units

  • 4 posts
    #1 Nov 26, 2012 at 23:12 UTC - 0 likes

    hey

    so as the tittle says,

    if a player leaves the game , how do I remove all units belonging to that player in entire map?

    #2 Nov 26, 2012 at 23:14 UTC - 0 likes

    Leaver Events Player - Player Any Player leaves the game with Any Local Variables Conditions Actions Unit Group - Remove all units from (Any units in (Entire map) owned by player (Triggering player) matching Excluded: Missile, Dead, Hidden, with at most Any Amount)

    #3 Nov 26, 2012 at 23:56 UTC - 1 like

    @Selfcreation: Go

    Make a new trigger:

    Event: Player Leaves Game
    Conditions: None
    Actions: 
    Pick each unit in unit group (Units owned by player (triggering player)) and do actions:
    {
    Remove unit (Picked unit)
    }
    

    Here's what this is saying: Whenever a player leaves the game, pick each of his units, and then kill them one-by-one.

    Send me a PM with any questions or comments.

    Learn about HotS mods, publishing, and regions here

    #4 Nov 27, 2012 at 02:12 UTC - 0 likes

    thanks allot guys :) , im really bad with triggers , hehe :P

  • 4 posts

You must login to post a comment. Don't have an account? Register to get one!