SC2Mapster Forums

Development > AI Development

How to affect units created using effects?

  • 5 posts
    #1 Nov 27, 2012 at 12:25 UTC - 0 likes

    What i need to do:
    An effect spawns a group of units and makes their owner player 15, or Enemy (cuz i can't specify a player in the effect itself, u know). Then i need these units to unite into a wave and go somewhere.

    The problem:
    I have no idea how to give orderes to these units cuz i see no function that returns units spawned by an effect.

    http://www.sc2pod.com/achievement.php?id=13904

    #2 Nov 27, 2012 at 16:59 UTC - 0 likes

    "Select units in region" with regoin = "circle around the point where the effect happened" could return those units.

    #3 Nov 28, 2012 at 15:41 UTC - 0 likes

    @Zolden:

    But in this region i also have other units...

    #4 Nov 28, 2012 at 16:12 UTC - 1 like

    @FunBotan: Go

    There is a field called "Spawn Effect" or something like that in the Create Unit effect, put a dummy effect in there, have a trigger use that effect as an event and then just order (Triggering Effect Unit (Target)) to do whatever you want. If you need them to be in an actual unit group variable, just add them into that variable and run another trigger 0.0 seconds afterwards that does whatever you need to the unit group variable.

    Projects: Starmon - RuneCraft
    http://i.imgur.com/1jpXAne.png

    #5 Nov 28, 2012 at 18:02 UTC - 0 likes

    @TheAlmaity:

    0.o
    So complicated...
    But will try, thanks.

  • 5 posts

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