Other great resources: Official JS API docs, Scripting Forum
You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 3 Current »
groupAdd(group, gameObj);
The unique ID of the group you want to add to.
If the group ID doesn't exist, a group will be created automatically.
You can determine the next available group from groupSizes.length.
groupSizes.length
You can also use newGroup() to create a new group and get it's ID.
A valid droid, structure or feature. If it's already in a different group, it will be transferred in to this group.
undefined
Read important notes about changes to groups in Warzone 3.2.
var annoyances = newGroup(); function eventAttacked(victim, attacker) { groupAdd(annoyances, attacker); }
Requires:
Earlier versions:
Jump to:
Related Objects:
Create them:
Add things to them:
Remove things from them:
Count objects in them:
List them:
Retrieve their objects:
Monitor them:
Remove them: