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

Version 1 Current »

Get a list of all objects selected by the the game host...

 

Syntax

var results = enumSelected();

Parameters

No parameters.

Return values

ValueTypeNotesGame Version
<results>Array of
Game objects
An array of game objects that are currently selected by the human game host (usually player 0).3.2
[]Empty ArrayIf no objects are selected, an empty array is returned.3.2

Example

Iterate through all selected game objects...
enumSelected().forEach(function get(gameObject) {
	// do stuff with selected gameObject
});
Availability 3.2+

Requires:

  • Warzone 3.2 or above
Contents

Jump to:

See also

Related articles:

 

  • No labels