Jump to content
Sign in to follow this  
coolfact

Define unit class in role selection

Recommended Posts

I have tried to copy the loadout script used in apex protocol, which works fine (getting the right gear and so on). However I was wondering if I have specialized units such as medics which needs to be defined by class if using addons such as Ace 3 (advanced medic) the role selection in the menu is not defining the class of the unit, is there a way to add unit to a class? Or do I need to have an lobby defined medic? (eden placed medic, which can be chosen in lobby)?

 

My code:

class CfgRoles
{
   class Corpsman
   {
      displayName = "Corpsman";
      icon = "\A3\Ui_f\data\GUI\Cfg\Ranks\sergeant_gs.paa";
   };
};

class CfgRespawnInventory
{
   class WEST1
   {
     displayName = "USMC"; // Name visible in the menu
     icon = "\A3\ui_f\data\igui\cfg\weaponicons\srifle_ca.paa"; // Icon displayed next to the name
         show = "side group _this == west";
     role = "Corpsman";
     ...
     //Rest of loadout code
     ...
};



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
Sign in to follow this  

×