NOTE: This is an archive of the old wiki.
Expect content to be outdated and links to be broken.

User Tools


obsolete:lua:lua_addradarcontact

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@@
obsolete/lua/lua_addradarcontact.txt ยท Last modified: 2023/09/03 18:43 by 127.0.0.1