SC2Mapster Forums

Development > Triggers

Help - Add all Units of Player(x) to Unit Group

  • 5 posts
    #1 Feb 13, 2013 at 14:00 UTC - 0 likes

    Hey Mapsters, I want to add all units of a player to one unit group how do I do that? My ultimate goal is a trigger that kills any unit that comes in range x with a unit of this "unit group". I think this is easy for you guys but I seem to be blind..

    Thanks in advance, BDKPlayer

    Last edited Feb 13, 2013 by BDKPlayer
    #2 Feb 13, 2013 at 14:55 UTC - 0 likes

    start with the trigger Unit Group - Pick each unit in unit group. then click the "last created units" and change it to "units in region matching condition." then all you have to do is change "any player" to whatever player you want and for the actions part put "add unit to unit group" with the "triggering unit" changed to "picked unit"

    Last edited Feb 13, 2013 by KingRadical
    #3 Feb 13, 2013 at 15:28 UTC - 0 likes

    Okay thanks to you I got this now :) thanks. Now I want that Units in Unit Group heroes Die when they are in range of a unit of unit group killers. This is what I came up with:

    Event Unit - (Unit 1 from Heroes) Enters (Region((Postition of (Unit 1 form Killers)), 1,0))

    Actions Unit - Kill (Unit 1 From Heroes)

    I guess its not working because its always Unit 1. What does it mean? I want it to be any unit..

    Last edited Feb 13, 2013 by BDKPlayer
    #4 Feb 13, 2013 at 17:16 UTC - 0 likes

    @BDKPlayer: Go

    You would likely be better off using behaviors for all of the Killers units. Under requirements for the ability, you can set a specific unit type so it only affects the Victim units.

    Last edited Feb 13, 2013 by BasharTeg

    My Projects:
    Malum Ruina: SC2Mapster
    Eternal Exile: SC2Mapster
    Spine Crawler Madness: SC2Mapster
    Xeno Crisis: SC2Mapster

    #5 Feb 13, 2013 at 18:12 UTC - 0 likes

    Im only used to the wc3 editor.. so I dont know about this requirements ability stuff... Can you help me to get what I want? :)

  • 5 posts

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