Jump to content
FoxhoundBC

Question About Insignias

Recommended Posts

Hello!

I am trying to assign insignias per unit via 

 

[this,""] call BIS_fnc_setUnitInsignia;

 

in the units init and defining insignias via

class CfgUnitInsignia
{
    class
    {
        displayName = ""; // Name displayed in Arsenal
        author = ""; // Author displayed in Arsenal
        texture = "."; // Image path
        textureVehicle = ""; // Does nothing currently, reserved for future use
    };
};

 

in the description.ext 

 

it does work but I noticed when players enter to virtual arsenal box it disappears and also during respawns it disappears. How can I permanently add an insignia to a unit on a dedicated server do that it doesnt disapear when untis get gear in the arsenal or on respawns?

 

Thanks!

Share this post


Link to post
Share on other sites

The init script is only run once at mission start, hence losing the insignia when the unit is respawned. Try the onPlayerRespawn.sqf file. More info here. As for the virtual arsenal, I suppose the insignia defaults to one of the already existing ones. Not sure how to prevent that from happening, but you could probably check somehow if the virtual arsenal is closed, and run a script to add your insignia again.

Share this post


Link to post
Share on other sites

This can't work 100% through description.ext. For any custom insignia, you need to create an addon and all players must have it loaded , if no change since my remark on the BIKI page (I guess not but I didn't test it any more).

Share this post


Link to post
Share on other sites

Opening a limited arsenal causes the insignia to disappear. Try the full arsenal:

["Open",true] spawn BIS_fnc_arsenal;

This will give options to change face, voice and insignia.

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

×