Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Comment:
Migrated to Confluence 5.3
Excerpt |
---|
Make a component available to the player so they can use it in droid designs... |
Syntax
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
makeComponentAvailable(component, player); |
Parameters
Parameter | Type | Mandatory | Notes | Game version |
---|---|---|---|---|
component | String | The component to make available. | 3.1 Beta 1 | |
player | Number | The player ID who should be given |
...
the component. | 3.1 Beta 1 |
Return values
Value | Type | Notes | Game version |
---|---|---|---|
undefined | Undefined | The component was made available to the |
...
player. | 3.1 Beta 1 | ||
<error> | Error | Invalid component ID or player ID. | 3.1 Beta 1 |
Notes
This function actually makes the component available to build, whereas enableComponent() makes the component available to research.
Example
Div | ||||||
---|---|---|---|---|---|---|
| ||||||
Availability
Requires:
|
Div | ||||
---|---|---|---|---|
| ||||
ContentsJump to:
|