Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Excerpt |
---|
Create a new droid group... |
Syntax
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
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
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
var myGroup = newGroup(); // create a new group, storing it's ID in "myGroup" function eventDroidBuilt(droid, structure) { groupAddDroid(myGroup, droid); console(groupSize(myGroup)); } |
Div | ||||||
---|---|---|---|---|---|---|
| ||||||
Availability
Requires:
|
Div | ||||
---|---|---|---|---|
| ||||
ContentsJump to:
| ||||
Div | ||||
|
Include Page | ||||
---|---|---|---|---|
|