Arma 3 Scripting

Military Symbols

Topic · Markdown · JSON · original wiki page

Military Symbols allow to display units' military symbol in real time either in-game (above units), on map or both.

Initialization

Module Location

Enable Icons

Place the "Military Symbols" module and include the following code in the init line:

setGroupIconsVisible [true /* markers on map */, true /* 3D markers */];

Set up Module

Set variables to BIS_marta_mainscope with desired values

Example:

BIS_marta_mainscope setVariable ["rules", [["o_", "colorred"], ["b_", "colorgreen"], ["n_", "colorgreen"], ["n_", "coloryellow"]]];

Default value: [["o_", "colorred"], ["b_", "colorgreen"], ["n_", "colorgreen"], ["n_", "coloryellow"]]

To set up colors in RGB format put the following into module`s init line:

Example:

this setVariable ["rules", [["o_", [0.00001, 1, 0, 1]], ["b_", [1, 0, 0, 1]], ["n_", [0, 0.7, 0, 1]], ["n_", [0.8, 0.8, 0, 0]]], true]

Where array after prefix has format : [Red, Green, Blue, Alpha (transparency)]

Example:

BIS_marta_mainscope setVariable ["delay", 0.1];

Default value: 0.5

Example:

BIS_marta_mainscope setVariable ["duration", 600];

Default value: 300 (5 minutes)

Example:

BIS_marta_mainscope setVariable ["minSize", 3];

Default value: 1

Example:

BIS_marta_mainscope setVariable ["WPgroups", [group soldier1, group player]];

Default value: empty array

Set up groups

Example:

(group player) setVariable ["MARTA_customIcon", "b_recon"];

Example:

(group ruOfficer) setVariable ["MARTA_WP_isText", true];

Set up units

Example:

player setVariable ["MARTA_showRules", ["USMC", 1, "CDF", 0]];

(GeneralCarver, 11/27/10) - As of Arma 2 v1.7 and Operation Arrowhead v1.55 this command seems to be ignored in multiplayer, but works in single player. A complete list of factions can be found here: faction

Example:

player setVariable ["MARTA_reveal", [group ruTarget]];

Example:

player setVariable ["MARTA_hide", [group usmcPatrol]];

Functions

Important

In Arma 2 you have to use waitUntil { not isNil "BIS_fnc_init" };..

Get visible groups

[centre, radius] call BIS_Marta_getVisibleGroups;

Marker list

Icon name consists of prefix and name. Prefix is used to define side and can be one of following:

Value Description
b_ BLUFOR
o_ OPFOR
n_ neutral

Name defines purpose of the icon. See picture on the right or code below to get visual list of icons:

Value Description
inf Infantry
motor_inf Motorized infantry
mech_inf Mechanized infantry
armor Armored platoon
air Rotary wing aircraft
maint Maintanance group
hq Headquarters
supply Supply convoy
plane Fixed wing aircraft
art Artillery
mortar Mortar
med Medical
recon Reconnaissance team
uav Unmanned Aerial Vehicle
empty Unknown

For example, to set icon of enemy artillery, use prefix o_ and type art to get o_art icon type.

Icons are defined in cfgGroupIcons section.