Versions Compared

Key

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

Overview

...

titleDeprecated

...

Excerpt

Early implementation of orderDroidBuild()...

 

Syntax

Warning

Deprecated, use orderDroidBuild() instead.

...

Availability

Warzone 3.1 early alpha releases up to at least 3.1 Beta 5.

Deprecated in Warzone 3.1 Beta 1.

Image Removed Backport orderDroidBuild() to the alpha releases, and remove orderDroidStatsLoc() from all releases, using the orderDroidBuild.js script.

See also

...

Code Block
themeRDark
languagejavascript
linenumberstrue
orderDroidStatsLoc(droid, order, structureID, x, y);

Parameters

ParameterTypeMandatoryNotesGame Version
droidDroid object(tick)The droid that will build the structure(s).3.1 Alpha ONLY
orderConstant(tick)

Indicate the construction mode:

  • DORDER_BUILD – the droid should build a single new structure.
  • DORDER_LINEBUILD – the droid should build a row of structures from it's current location to the target location.

Note: Once construction has started, other droids can help with the building process by issuing DORDER_HELPBUILD via the orderDroidObj() function.

3.1 Alpha ONLY
structureIDString(tick)

The ID of the structure you want built. You can find a list of structure ID's in structures.txt or structures.ini (depending on game version).

Note: You cannot use structure type constants, you have to specify the specific structure id.

3.1 Alpha ONLY
xNumber(tick)

The x co-ordinate of the top-left corner of the construction site.

Note: Always find suitable co-ordinates by using pickStructLocation() first.

3.1 Alpha ONLY
yNumber(tick)

The y co-ordinate of the top-left corner of the construction site.

Note: Always find suitable co-ordinates by using pickStructLocation() first.

3.1 Alpha ONLY

Return values

ValueTypeNotesGame Version
trueBooleanThe order was successful and the droid will build the structure.3.1 Alpha ONLY
falseBooleanThere was a problem and the structure will not be built.3.1 Alpha ONLY
<error>ErrorAn error occurred, for example invalid parameters.3.1 Alpha ONLY

Example

See orderDroidBuild() for examples. The orderDroidStatsLoc() function takes the same parameters (with the exception of the direction parameter) and works the same way as orderDroidBuild().

Div
classnotice box ping

This function is deprecated, use orderDroidBuild() instead.

Div
classbox
Availability
Status
colourRed
title3.1 a

Requires:

  • Warzone 3.1 early Alpha releases
  • Still available, but deprecated, throughout all Warzone 3.1 releases
  • Expected to be removed in Warzone 3.2
Div
classbox
Contents

Jump to:

Table of Contents
maxLevel5

Div
classbox

See also

Related articles: