Other great resources: Official JS API docs, Scripting Forum

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

Version 1 Next »

Highlight map tiles with a pulsing red glow...

 

Syntax

There are several syntax options for this function...
// syntax #1: POSITION or AREA label
hackMarkTiles(labelName);
 
// syntax #2: x,y tile reference
hackMarkTiles(x, y);
 
// syntax #3: area co-ordinates
hackMarkTiles(x, y, x2, y2);
 
// syntax #4: clear all markings
hackMarkTiles();

Parameters

SyntaxParameterTypeMandatoryNotesWarzone Version
#1labelName

String

(tick)

A label associated with a Position object or Area object – corresponding tiles will be marked.

3.2
#2x, yNumbers(tick)Mark a single tile specified by its x,y co-ordinates.3.2
#3x,y, x2,y2Numbers(tick)The top-left corner (x,y) and bottom-right corner (x2,y2) of an area to mark.3.2

Return value

ValueTypeNotesWarzone Version
undefinedUndefinedThe function does not return anything if sucessful.3.2
<error>ErrorAn error occurred, most likely invalid parameters.3.2

Notes

The markings are cumulative – you can mark multiple tiles or areas in turn, using any syntax desired.

When the function is called without parameters, all markings are cleared.

Example

// syntax #1: POSITION or AREA referenced by label
hackMarkTiles("OUTPOST"); // mark tiles of object labelled "OUTPOST"
 
// syntax #2: single tile
hackMarkTiles(5,7); // highlight tile at 5,7
 
// syntax #3: area co-ordinates
hackMarkTiles(5,7, 10,15); // area highlighted
 
// syntax #4: clear all markings
hackMarkTiles(); // all markings removed
This function is likely to undergo several changes. 
Availability 3.2+

Requires:

  • Warzone 3.2 or above
Contents

Jump to:

See also

Related articles:

 

  • No labels