Pick random unit in unit group?

Discussion in 'World Editor Help' started by Banli, Aug 5, 2008.

  1. Banli

    Banli Guest

    Ratings:
    +0 / 0 / -0
    How do I pick a random unit from a unit group?
     
  2. AceHart

    AceHart Your Friendly Neighborhood Admin

    Ratings:
    +1,489 / 0 / -0
    Set myUnitVariable = Random unit from <some group>
     
  3. Exide

    Exide I am amazingly focused right now!

    Ratings:
    +449 / 0 / -0
    Depends on what you want to do with it..

    Code:
    Unit - Kill (Random unit from (Last created unit group))
    
     

Share This Page