Other great resources: Official JS API docs, Scripting Forum

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

An array of group sizes...

 

Syntax

var size = groupSizes[groupID];

Properties

PropertyTypeMandatoryDescriptionGame version
groupIDNumber(tick)

The ID of the droid group.

This ID is generated when you create a new group using newGroup().

3.2

Notes

See important notes regarding changes to groups in Warzone 3.2.

The groupSizes global is a "sparse" array – that means there might be gaps in the numbering of it's elements. As such, it's recommended to use the forEach() method when iterating the array (see example below).

Example

Iterating through the groupSizes array...
groupSizes.forEach( function get(groupSize, groupID) {
	// do stuff
} );

 

 

For Warzone 3.1, use groupSize() function instead (it also works on WZ 3.2+).
Availability 3.2+

Requires:

  • Warzone 3.2 and above.
Contents

Jump to:

See Also

Related articles:

 

  • No labels