Versions Compared

Key

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

Get positions of non-transient radar blips as seen by your radar detectors...

 

Syntax

Code Block
themeRDark
languagejavascript
linenumberstrue
var returnValue = enumBlips( seenBy );

Parameters

ParameterTypeMandatoryDescriptionGame version
seenByNumber(tick)

A list of blips seen by the specified player will be returned.

Usually, you'll want this to be me.

3.1 beta 2

Return values

ValueTypeDescriptionGame version
<blips>Array

An array of objects, with each object having an x and y property specifying the location of a blip on the map. The objects are similar to Position objects but without the .type property.

You cannot target blips, but you can send a droid to the position to scout and find out more about what is there.

3.1 beta 2
<error>ErrorThe player specified does not exist.3.1 beta 2

Example

Code Block
themeRDark
languagejavascript
titleIterating a list of blips
linenumberstrue
var blips = enumBlips(me); // what radar blips can I see?
 
blips.forEach( function(blip) {
  console("Enemy blip detected at x:"+blip.x+", y:"+blip.y);
} );
Div
classbox
Availability
Status
colourGreen
title3.1 b2+

Requires:

  • Warzone 3.1 Beta 2 or above
Div
classbox
Contents

Jump to:

Table of Contents
maxLevel5

Div
classbox
Blips include:

What blips?

(tick) Enemy sensor towers (all types)

(tick) Enemy ECM towers

(error) Enemy radar detectors are not included

(error) Enemy units that have just gone went out of view are not included

Div
classbox

See also

Related articles:

  • eventObjectSeen() – an event that's triggered when your normal sensors detect game objects
  • enumArea() – get a list of objects in a specific area of the map
  • enumRange() – get a list of objects within a specific range of a map position
  • enumStruct() – get a list of structures
  • Map – quick reference of API features relating to maps