...
Excerpt |
---|
Activates the special feature of a structure, such as firing laser satellite. |
Availability
This function was added in Warzone 3.1 Beta 2.
Syntax
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
var returnValue = activateStructure(structure,target,ability); // or this might sometimes work... var returnValue = activateStructure(structure,{x:xPos,y:yPos},ability); |
...
Parameter | Type | Mandatory | Description | Game version |
---|---|---|---|---|
structure | Structure object | The structure that will perform the special action. | 3.1 beta 2 | |
target | Game object {x:xPos, y:yPos} | The target location – usually a game object, but some structures might accept any object with x,y properties. The following structure types require a target:
| 3.1 beta 2 | |
ability | (not yet documented) | 3.2 |
Return value
...