Other great resources: Official JS API docs, Scripting Forum
orderDroidStatsLoc()
- Aubergine
Syntax
Deprecated, use orderDroidBuild() instead.
orderDroidStatsLoc(droid, order, structureID, x, y);
Parameters
Parameter | Type | Mandatory | Notes | Game Version |
---|---|---|---|---|
droid | Droid object | The droid that will build the structure(s). | 3.1 Alpha ONLY | |
order | Constant | Indicate the construction mode:
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 | |
structureID | String | 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 | |
x | Number | 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 | |
y | Number | 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
Value | Type | Notes | Game Version |
---|---|---|---|
true | Boolean | The order was successful and the droid will build the structure. | 3.1 Alpha ONLY |
false | Boolean | There was a problem and the structure will not be built. | 3.1 Alpha ONLY |
<error> | Error | An 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().
Availability 3.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
Contents
Jump to:
See also
Related articles:
- orderDroid() – give a droid a basic order
- orderDroidBuild() – replacement for orderDroidStatsLoc()
- orderDroidLoc() – tell a droid to do something at a specific map location
- orderDroidObj() – tell a droid to do something to a specific game object
- eventDroidIdle() – triggered when a droid becomes idle
- eventStructureBuilt() – triggered when a structure is built