-
Notifications
You must be signed in to change notification settings - Fork 49
Custom unit specific icon
diwako edited this page Mar 4, 2025
·
3 revisions
Starting with version 1.5.5 and 1.6.0 respectively it is possible to give single units custom icons. That is especially useful if you want a certain role in your mission to have a special icon or if your group’s squad structure and roles is completely different to what vanilla Arma provides.
In order to use this feature, you have to set a variable on the unit itself. The value will be the path to a texture, be it inside the mission or a mod does not matter.
It is recommended to broadcast this variable to all machines using the broadcast flag in the setVariablecommand.
The icon on the radar, in the name list and the middle icon of an indicator can be set like this!
Example:
// Radar (available since 1.5.5)
_unit setVariable ["diwako_dui_radar_customIcon", "path/to/texture.paa", true];
// middle icon for indicators (available since 1.6.0)
_unit setVariable ["diwako_dui_indicators_customIcon", "path/to/texture.paa", true];
// Line compass (available since 1.12.0)
// parameters:
// 1: texture path
// 2: size of icon
_unit setVariable ["diwako_dui_linecompass_customIcon", ["path/to/texture.paa", 2], true];;