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

makeComponentAvailable()

Make a component available to the player so they can use it in droid designs...

 

Syntax

makeComponentAvailable(component, player);

Parameters

ParameterTypeMandatoryNotesGame version
componentString(tick)The component to make available.3.1 Beta 1
playerNumber(tick)The player ID who should be given the component.3.1 Beta 1

Return values

ValueTypeNotesGame version
undefinedUndefinedThe component was made available to the player.3.1 Beta 1
<error>ErrorInvalid 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

 

Availability 3.1 B1+

Requires:

  • Warzone 3.1 Beta 1 or above
Contents

Jump to:

Â