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 8 Next »

Triggered when a game object leaves a group...

 

Syntax

eventGroupLoss(gameObject, groupID, groupSize)

Parameters

ParameterTypeNotesGame Version
gameObjectGame object

The object that left the group.

Note that in WZ 3.2+, any type of game object can be added to a group.

3.2
groupIDNumberThe ID of the group3.2
groupSizeNumberThe size of the group after the object was removed from the group.3.2

Notes

An object can be removed from a group in three ways:

  • The object gets destroyed – eventDestroyed() will be triggered after eventGroupLoss()
  • The object is transferred to another player (either by Nexus Link or donateObject()) – (question) not sure of event order or .player val
  • The object is moved to another group
Availability 3.2+

Requires:

  • Warzone 3.2 or above
Contents

Jump to:

Scripting: Groups

Related Objects:

 Create them:

  • newGroup() – create a new group
  • WZ 3.2+ – add to a group that doesn't exist yet
  • labels.ini – group map-placed objects

Add things to them:

Remove things from them:

  • Put them in some other group

Count objects in them:

List them:

Retrieve their objects:

Monitor them:

Remove them:

  • not currently possible

 

 

  • No labels