Jass documentation Database

JASS Documentation Database REFORGED


Results for the query "GetRandomSubGroup" as a "function"

The search keyword must be a single word (no spaces).

Function GetRandomSubGroup

Line: 4953
Location: blizzard.j
Constant? no
Type: function
Arguments: integer count, group sourceGroup
Returns: group

Preview

Extra spaces may have been removed from the original file to show the function in a comfortable way.
  1. function GetRandomSubGroup takes integer count, group sourceGroup returns group
  2.     local group g = CreateGroup()
  3.  
  4.     set bj_randomSubGroupWant  = count
  5.     set bj_randomSubGroupTotal = CountUnitsInGroup(sourceGroup)
  6.  
  7.     if (bj_randomSubGroupWant <= 0 or bj_randomSubGroupTotal <= 0) then
  8.         return g
  9.     endif
  10.  
  11.     call ForGroup(sourceGroup, function GetRandomSubGroupEnum)
  12.     return g
  13. endfunction
Page loaded in 0.0761 seconds.
Vivir aprendiendo.co - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!!   WC3JASS.com - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)   Warcraft RESOURCES Reforged: Modelos, mapas, proyectos y mas...