Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
themeEclipse
languagejavascript
linenumberstrue
var returnValue = activateStructure(structure,target,ability);
 
// or this might sometimes work...
var returnValue = activateStructure(structure,{x:xPos,y:yPos},ability);

Parameters

ParameterTypeMandatoryDescriptionGame version
structureStructure object(tick)The structure that will perform the special action.3.1 beta 2
target

Game object

{x:xPos, y:yPos}

(tick)(question)

The target location – this can be usually a game object, or any other object that has but some structures might accept any object with x,y properties.

The following structure types require a target:

  • LASSAT – Laser Satellite Command Post
3.1 beta 2
ability (error)(not yet documented)3.2

Return value

ValueTypeDescription
trueBooleanThe structure was activated
<error>ErrorSomething went wrong

...