-
Notifications
You must be signed in to change notification settings - Fork 49
Custom unit specific (group) names and information
Beginning with DUI version 1.9.0 a feature has been added which allows mission makers to change the shown unit name on namelist and name tags.
To do so, write the variable diwako_dui_main_customName directly onto the unit with the desired name.
Example:
// change players name
player setVariable ["diwako_dui_main_customName", "Hans Wurst", true];If you are using ACE and want a cohesive name change, you must overwrite the variable "ACE_name" on the unit. Do mind this variable is being set one frame AFTER the unit has initialized. It is recommended to set that variable 2 frames after the unit has been initialized or as an easier way 1 second after unit was initialized.
// change players ACE name
player setVariable ["ACE_name", "Hans Wurst", true];With version 1.9.0 is it possible to give a unit a custom group name. It will then ignore the mission set or generated group name and use the custom one instead. For example this name will then be shown on a units DUI name tag.
// change custom group name
player setVariable ["diwako_dui_nametags_customGroup", "The misfit squad", true];With version 1.12.7 it is possible to add a third row for the name tags. This row is by default empty and meant for mission makers or mod makers to fill with extra information.
Such extra information can be used if a unit is a VIP, part of a special sub team inside the squad, maybe the player's role within a squad, maybe their pronouns. In the end it is a free text input and it can be used for almost what ever.
To use this feature you just need to write the diwako_dui_nametags_customInfo variable on the unit.
As example:
// add custom name tag information
player setVariable ["diwako_dui_nametags_customInfo", "Village Idiot", true];