Versions Compared

Key

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

Highlight map tiles with a pulsing red glow...

 

Syntax

Code Block
themeRDark
languagejavascript
titleThere are several syntax options for this function...
linenumberstrue
// 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.

Tip: You can use the Javascript Debugger to highlight tiles associated with Labels.

Example

Code Block
themeRDark
languagejavascript
linenumberstrue
// 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
Div
classnotice box ping

This function is likely to undergo several changes. 

Div
classbox
Availability
Status
colourRed
title3.2+

Requires:

  • Warzone 3.2 or above
Div
classbox
Contents

Jump to:

Table of Contents
maxLevel5

Div
classbox

See also

Related articles: