You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 16 Next »
Groups are collections of Game objects. There are several benefits to using groups instead of custom arrays:
Note: Groups in the scripting environment are not the same as groups that a human player can set, they do not have shortcut keys, etc.
Warzone 3.1
Droid object
Feature object
Structure object
Other player's objects
In 3.1 RC3 and earlier, empty groups were automatically deleted (bug #3684).
Warzone 3.2+
Other players objects
All versions
Droid objects have a .group property stating which group they are in
An object can only be in one of your groups at a time
There are no reachable limits on the number of groups or the number of items in a group
There are four ways to create groups:
Groups created by your script are private and only your script can see them.
Groups defined by a map (in labels.ini) are available to all players.
It's not clear what will happen if a script tries to update a map-defined group.
As stated earlier, groups and the objects they contain will persist the save/load cycle.
When you start a new game, the original map-defined (in labels.ini) groups will be reinstated.
Requires:
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: