Table of Contents

Lua AddRadarContact

void AddRadarContact( int entIndex, int type, bool visible, string icon, int red, int green, int blue, int alpha );

Description

Adds a contact to the radar resource. This is a persistent contact that has the properties stated above. Useful for adding known entities (such as the special weapon) or coloring players (the golden gun holder). This can also be used to add icons to players given the icon is loaded in ModTextures.txt in the scripts folder.

Note: Not all fields need to be entered, the resource is smart enough to set defaults for uninitialized items

Version

Beta 3.0

Example

0@@