Skip to content

How to add a insignia

Broström.A | Evul edited this page Dec 22, 2018 · 37 revisions

To add an insignia involve two steps; creation and conversion of an image and some minor scripting

Image and format

First off you need the image in a PNG format with a transparent background with the size of 512x512.

This image should be converted to PAA with DXT5 encode. This is done with the Arma 3 Tools program; TexView2, ImageToPAA or ARMAKE.

Image to cScripts

  1. Naming the insignia (Follow current name standard).
  2. Place your insignia in: cScripts\Data\Insignia\
  3. Add the new insignia to CfgUnitInsignia.hpp
    To make it easy to add more insignias we have developed a macro to be used: MACRO_UNITINSIGNIA(My insignia name,CONFIGandPAANAME);
  4. Add the insignia to the selector script; fn_initInsigniaSelections.sqf To make it easy for your self to add more insignia to the selector just copy paste an insignia function from a previous category. Example:
    [_object,"Squad Insignia 1/1/C/1-7","Charlie_1_1","cScripts\Data\Insignia\Charlie_1_1.paa",['ACE_MainActions','cScriptInsigniaSelectionMenu','cScriptInsigniaSelectionCharlie']] call FUNC(addInsigniaSelection);
    

See also

cScripts Development Wiki

Clone this wiki locally