• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[SOLVED] Pick random 3 units from unit group

Status
Not open for further replies.
Level 7
Joined
May 18, 2010
Messages
264
Realy simple one just cant find it and i saw it somwhere
  • Chilling Wind
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to |cfff0e68cChiling Wind|r
    • Actions
      • Set ChillingWind_Unit = (Triggering unit)
      • Set ChillingWind_Point = (Target point of ability being cast)
      • Unit Group - Add all units of (Units within 300.00 of ChillingWind_Point matching (((Picked unit) belongs to an ally of (Owner of ChillingWind_Unit)) Equal to True)) to ChillingWind_Group
      • Unit Group - Pick every unit in ChillingWind_Group and do RANDOM 3 UNITS ????
pick random 3 units from chillingwind_group not all :(???
 
Level 15
Joined
Oct 16, 2010
Messages
941
Instead of selecting ChillingWind_Group as the UnitGroup for the pick-every function, selected instead "Random N units from unit group" and then select it.

  • Unit Group - Pick every unit in (Random 4 units from (ChillingWind_Group)and do (Actions)
    • Loop - Actions
 
Level 7
Joined
May 18, 2010
Messages
264
<3 THX lolz i still didnt figure it out till now :)
ofc +rep

closed pls dont write
 
Status
Not open for further replies.
Top