Warcraft 3 documentation
vJASS & Zinc Documentation
For the latest documentation about how it works vJASS and Zinc language layers for Warcraft III, please follow these links:
Jasshelper documentation - Zinc documentation - WC3 Optimizer documentation
This topic is the discussión abut the function FirstOfGroup. You can see all the information about this function keyword HERE.

[functions] FirstOfGroup No New Posts Jassdoc

Started by

0 Members and 1 Guest are viewing this topic.

[functions] FirstOfGroup
on: February 19, 2022, 03:35:18 PM

returns the unit at the first position in group or null if that unit no longer exists.

Equivalent to: BlzGroupUnitAt(varGroup, 0)

Note: If the first unit of this group was removed from the game (RemoveUnit or decayed) then null be returned, regardless if there're valid units in group at further indeces. To iterate over all existing units of a group, use ForGroup/ForGroupBJ.
You cannot remove such null "holes" from a group without destroying or clearing it (DestroyGroup/GroupClear)
« Last Edit: February 19, 2022, 03:51:23 PM by City17 »


Started by moyack

Replies: 3
Views: 4233

Started by Jedi

Replies: 5
Views: 14820
General Jass Discussion

Started by moyack

Replies: 40
Views: 58679
Jass Theory & Questions

Started by moyack

Replies: 0
Views: 658

Started by moyack

Replies: 0
Views: 649
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...