$customHeader
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

An array of oil resources on the map, filtered to those that don't have derricks built on them at the start of the game.

 

Overview

You can use this array to get locations of unclaimed oil resources at the start of the game.

Later in the game it's worth using enumStruct() to find enemy derricks and enumFeature() to find oil resources that have become available (had their derricks destroyed) since the start of the game.

The main use of the 'derrickPositions' array is to position the camera (using centreView() function) on them when giving mission briefings, etc., during campaign missions or challenges.

Values

The 'derrickPostiions' array contains a numerically-referenced list of Position objects that define the co-ordinates of the oil resources that were available at the start of the game.

PropertyTypeDescriptionGame Version
xNumberThe x co-ordinate of the item3.1 Beta 1
yNumberThe y co-ordinate of the item3.1 Beta 1
typeConstantPOSITION3.1 Beta 11

Note: You can't order a droid to build derricks on position objects, you have to use enumFeature() or eventObjectSeen() to find the oil resource Feature objects.

Examples

Output positions of each derrick to the console
derrickPositions.forEach(function(pos) {
  console("there's one at: "+pos.x+","+pos.y); // x,y
});
Availability STABLE

Requires:

  • Warzone 3.1 beta 1 or above
  • The return value was updated in Warzone 3.1 Beta 11
Contents

Jump to:

See also

Related articles:

 

  • No labels