newGroup()

(info) Other great resources: Official JS API docs, Scripting Forum

newGroup()

Create a new droid group...

 

Syntax

var returnValue = newGroup();

Parameters

This function does not have any parameters.

Return value

Value

Type

Notes

Game version

<groupID>

Number

The unique ID for the newly created group.

3.1 Beta 1

Example

Create a new group
var myGroup = newGroup(); // create a new group, storing it's ID in "myGroup"   function eventDroidBuilt(droid, structure) { groupAddDroid(myGroup, droid); console(groupSize(myGroup)); }