Spawn unit question

Discussion in 'StarCraft 2 Maps, Replays, Modding' started by DoSrsCa88, Oct 5, 2011.

Spawn unit question

  1. DoSrsCa88

    DoSrsCa88 New Member

    Joined:
    May 29, 2010
    Messages:
    162
    Likes received:
    0
    Trophy points:
    0
    Can you give a unit or units that you spawned in a wave behaviors? I want to make two overseers in one of the waves to cast contamination on player 1' Barracks.
     
    Last edited: Oct 5, 2011
  2. EatMeReturns

    EatMeReturns Happy Mapper Moderator

    Joined:
    Jun 28, 2007
    Messages:
    1,730
    Likes received:
    11
    Trophy points:
    38
    From:
    Albuquerque, New Mexico
    I can think of several round-a-bout ways to achieve this, but you might want to first check around the wave-related actions/triggers/etc. for something ending in " with behavior."
     
  3. DoSrsCa88

    DoSrsCa88 New Member

    Joined:
    May 29, 2010
    Messages:
    162
    Likes received:
    0
    Trophy points:
    0
    So it is definitely a behavior trigger that you use for this? I thought it might be AI triggers that you might need to use.

    At the moment I am trying to figure out how make a unit in a wave such as an overseer available for selection in the trigger I am going to use for the behavior.
     
  4. EatMeReturns

    EatMeReturns Happy Mapper Moderator

    Joined:
    Jun 28, 2007
    Messages:
    1,730
    Likes received:
    11
    Trophy points:
    38
    From:
    Albuquerque, New Mexico
    Can you create a unit group of all units contained in the wave? You can then for-loop through this unit group for units of type Overseer.
     
  5. DoSrsCa88

    DoSrsCa88 New Member

    Joined:
    May 29, 2010
    Messages:
    162
    Likes received:
    0
    Trophy points:
    0
    I think I get you, ok I'll try it.
     
  6. DoSrsCa88

    DoSrsCa88 New Member

    Joined:
    May 29, 2010
    Messages:
    162
    Likes received:
    0
    Trophy points:
    0
    Hey the unit group should be done via creating a variable, right?
     
  7. EatMeReturns

    EatMeReturns Happy Mapper Moderator

    Joined:
    Jun 28, 2007
    Messages:
    1,730
    Likes received:
    11
    Trophy points:
    38
    From:
    Albuquerque, New Mexico
    I pretty much always use a variable to define things because it makes it way easy to reference later.