class roleClassname { //this class is used when defining which roles are in what group
//this is the name of the role as shown in the menu,
name = "Example Role";
//this is the description of the role shown in the menu, can be plain string or found in stringtable
description =”Example;
//these are specific traits to the unit in the following format {"trait",value,isCustom}}, more information here: https://community.bistudio.com/wiki/setUnitTrait
traits[] = {
{"Engineer",true},
{"Medic",true} // vanilla traits will not set ace abilities, but are required
};
//these variables are set on the player object once the role is taken in format {"variable",value,global}
//you only need to add the ones that apply, Example, if a role is not a medic then it does not need ace_medical_medicClass
customVariables[] = {
{"YMF_iscom", true, true}, // variable to access Simplex
{"draWhitelisted",TRUE,TRUE}, // variable to access Drongo air and arty if used
{"ace_medical_medicClass",2,true}, //Medical trait, 1=medic, 2= DR
{"ace_isEngineer",2,true}, //Engineer trait, 1=Engineer, 2=Advance Engineer
{"TFAR_freq_sr",{"500","71","72","73","74","75","76","70"},true}, // TFAR Short Range Frequencies
{"YMF_teamcolor", "YELLOW", true} // Team color
// White use "MAIN"
// Red use "RED"
// Green use "GREEN"
// Blue use "BLUE"
// Yellow use "YELLOW"
};
icon = "a3\ui_f\data\map\vehicleicons\iconMan_ca.paa"; //this icon is shown on the menu when picking a role
// https://community.bistudio.com/wiki/Unit_Loadout_Array but with {}'s not []'s,
// you can export from ace arsenal, then replace the []’s with {}’s
defaultLoadout[] = {
{"arifle_SDAR_F","","","",{"20Rnd_556x45_UW_mag",20},{},""},{},{"hgun_P07_snds_F","muzzle_snds_L","","",{"16Rnd_9x21_Mag",16},{},""},
{"U_B_Wetsuit",{{"FirstAidKit",1},{"30Rnd_556x45_Stanag_red",3,30},{"20Rnd_556x45_UW_mag",2,20},{"16Rnd_9x21_Mag",2,16},{"SmokeShellBlue",2,1},
{"Chemlight_blue",4,1}}},
{"V_RebreatherB",{}},{"B_Assault_Diver",{{"30Rnd_556x45_Stanag_red",2,30},{"20Rnd_556x45_UW_mag",2,20},{"SatchelCharge_Remote_Mag",1,1},{"MiniGrenade",3,1},
{"SmokeShellBlue",2,1},{"Chemlight_blue",4,1},{{"Rangefinder","","","",{},{},""},1}}},"","G_B_Diving",{},
{"ItemMap","ItemAndroid","ItemRadio","ItemCompass","ItemWatch",""}
};
arsenalWeapons[] = { //weapons that will be in the arsenal specific to this role
"arifle_SDAR_F"
};
arsenalMagazines[] = { //magazines that will be in the arsenal specific to this role
};
arsenalItems[] = { //any item not covered by other categories that will be in the arsenal specific to this role
"U_B_survival_uniform", "U_B_Wetsuit", "V_RebreatherB", "G_B_Diving"
};
arsenalBackpacks[] = {}; //backpacks that will be in the arsenal specific to this role
};