enumBlips()

(info) Other great resources: Official JS API docs, Scripting Forum

enumBlips()

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

 

Syntax

var returnValue = enumBlips( seenBy );

Parameters

Parameter

Type

Mandatory

Description

Game version

Parameter

Type

Mandatory

Description

Game version

seenBy

Number

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

Value

Type

Description

Game version

Value

Type

Description

Game 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>

Error

The player specified does not exist.

3.1 beta 2

Example

Iterating a list of blips
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); } );