Jump to content

Recommended Posts

Currently i'm working on my custom faction mod. I have different soldiers wearing same uniform variant. I have created three insignias and they work in the game (all of them are visible and usable in virtual arsenal). First insignia is used with my woodland uniform, second insignia used with desert uniform - they appear in-game when soldiers are placed through the editor. But when I try to assign my third insignia, which is again used with woodland uniform, game loads first insignia instead of third.

 

Insignias script looks like this:

 

class CfgUnitInsignia
{
    class LITHSOF_insignia1
    {
        displayName = "LITHSOF Woodland Insignia";
        author = "Karolus";
        texture = "\LAF\data\LITHSOF_woodland_insignia2.paa";
        textureVehicle = "";
    };
    
        class LITHSOF_insignia2
    {
        displayName = "LITHSOF Desert Insignia";
        author = "Karolus";
        texture = "\LAF\data\LITHSOF_desert_insignia.paa";
        textureVehicle = "";
    };
    
        class LITHSOF_insignia3
    {
        displayName = "Zaliukas";
        author = "Karolus";
        texture = "\LAF\data\YPT_Zaliukas_Insignia_co.paa";
        textureVehicle = "";
    };
};

 

 

Uniform script looks like this:

 

    class LITHSOF_Woodland_Uniform: Uniform_Base
    {
        scope = 2;
        displayName = "LITHSOF Woodland Uniform";
        picture = "\A3\characters_f_epa\data\ui\icon_U_B_CTRG_uniform_ca.paa";
        model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";
        hiddenSelections[] = {"Camo", "Insignia"};
        hiddenSelectionsTextures[] = {"LAF\data\LITHSOF_Woodland_co.paa"};
        class ItemInfo: UniformItem
        {
            uniformModel = "-";
            uniformClass = "LITHSOF1_Operator";
            containerClass = "Supply50";
            mass = 40; //Weight
            hiddenSelections[] = {"camo", "Insignia"};
        };
    };

 

My first soldier has these:

uniformClass = "LITHSOF_Woodland_Uniform";

        hiddenSelections[] = {"camo","insignia"};
        HiddenSelectionsTextures[] = {"LAF\data\LITHSOF_Woodland_co.paa","\LAF\data\LITHSOF_woodland_insignia2.paa"};

 

My second soldier has these:

        uniformClass = "LITHSOF_Woodland_Uniform";

        hiddenSelections[] = {"camo","Insignia"};
        HiddenSelectionsTextures[] = {"LAF\data\LITHSOF_Woodland_co.paa","\LAF\data\YPT_Zaliukas_Insignia_co.paa"};

 

Anyone have ideas how to fix this?

Share this post


Link to post
Share on other sites

Try

        uniformClass = "LITHSOF_Woodland_Uniform";
        hiddenSelections[] = {"camo","Insignia"};
        HiddenSelectionsTextures[] = {"LAF\data\LITHSOF_Woodland_co.paa"};
            class EventHandlers
           {
               init = "[(_this select 0), 'LITHSOF_insignia3'] call BIS_fnc_setUnitInsignia";
           };
  • Like 1

Share this post


Link to post
Share on other sites

 

Try

        uniformClass = "LITHSOF_Woodland_Uniform";
        hiddenSelections[] = {"camo","Insignia"};
        HiddenSelectionsTextures[] = {"LAF\data\LITHSOF_Woodland_co.paa"};
            class EventHandlers
           {
               init = "[(_this select 0), 'LITHSOF_insignia3'] call BIS_fnc_setUnitInsignia";
           };

Thank you, this worked perfectly!

 

Topic now can be closed.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×