mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
e181cffc83
Don't call nametags related functions if nametags isn't loaded
28 lines
823 B
Plaintext
28 lines
823 B
Plaintext
#include "script_component.hpp"
|
|
|
|
if !(["ace_nametags"] call EFUNC(common,isModLoaded)) exitWith {};
|
|
|
|
private _russianRankIcons = [
|
|
QPATHTOEF(nametags,UI\icons_russia\private_gs.paa),
|
|
QPATHTOEF(nametags,UI\icons_russia\corporal_gs.paa),
|
|
QPATHTOEF(nametags,UI\icons_russia\sergeant_gs.paa),
|
|
QPATHTOEF(nametags,UI\icons_russia\lieutenant_gs.paa),
|
|
QPATHTOEF(nametags,UI\icons_russia\captain_gs.paa),
|
|
QPATHTOEF(nametags,UI\icons_russia\major_gs.paa),
|
|
QPATHTOEF(nametags,UI\icons_russia\colonel_gs.paa)
|
|
];
|
|
|
|
{
|
|
[_x, _russianRankIcons] call EFUNC(nametags,setFactionRankIcons);
|
|
} forEach [
|
|
"rhs_faction_msv",
|
|
"rhs_faction_vdv",
|
|
"rhs_faction_vmf",
|
|
"rhs_faction_vv",
|
|
"rhs_faction_tv",
|
|
"rhs_faction_vpvo",
|
|
"rhs_faction_vvs",
|
|
"rhs_faction_vvs_c",
|
|
"rhs_faction_rva"
|
|
];
|