- Joined
- Oct 24, 2012
- Messages
- 6,545
umm is there a better pick random units than the get random sub group option in jass ? thx
Last edited:
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
umm is there a better pick random units than the get random sub group option in jass ? thx
not sure tht would work i need it to pick every unit in unit group but after it picks tht unit it needs to be removed if tht would work for it cool could u show me how to set it up tho im not really sure how to and thx
Actions

Set TempGroup = (Random 1 units from UnitGroup)

Unit Group - Pick every unit in TempGroup and do (Actions)


Loop - Actions



Unit Group - Remove (Picked unit) from UnitGroup

Custom script: call DestroyGroup(udg_TempGroup)
array and GetRandomInt?
ForGroup/first of group loop with GetRandomInt rolls?
set bj_wantDestroyGroup = true in this case doesn't work as it will destroy the Unit Group first before it is used, therefore no actual Unit Group is used.
