Jass documentation Database

JASS Documentation Database REFORGED


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

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

Function GroupAddUnit

Line: 2335
Location: common.j
Constant? no
Type: native
Arguments: group whichGroup, unit whichUnit
Returns: boolean

Preview

Extra spaces may have been removed from the original file to show the function in a comfortable way.
  1. native GroupAddUnit takes group whichGroup, unit whichUnit returns boolean

Information about GroupAddUnit

Information contributed by City17
on February 19, 2022, 04:35:13 PM.
appends whichUnit at the end of whichGroup, increasing size by 1 (see BlzGroupGetSize).
Returns true if the unit was added, false if the unit is already in the group or the group was destroyed.

Even if there's a null "hole" at index 0, the unit will still be added at the tail end.
Page loaded in 0.1075 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...