Following the new respawn screen documentation (Wiki Link), I am able to limit one role without problems (I can see the number I set as a limit to the right of the role name on the respawn screen).
However, if I assign a second role a limit, I get an error message at the respawn screen (pictured):
No role limits appear anymore, and if I ignore this message and spawn anyways, some loadouts dissapear from the list on subsequent respawns. The error message always comes back every respawn, but the line number changes from 150 to 23. I tried switching up the limits, limiting only roles, loadouts, or both, but the message remained the same.
Here is the relevant part of my description.ext
class CfgRespawnInventory { class Class1 { vehicle = "B_Soldier_F"; role = "role1"; }; class Class2 { role = "role2"; vehicle = "B_Soldier_M_F"; }; }; class CfgRoles { class role1 { displayName = "Role1"; icon = "\A3\Ui_f\data\GUI\Cfg\Ranks\sergeant_gs.paa"; }; class role2 { displayName = "Role2"; icon = "\A3\Ui_f\data\GUI\Cfg\Ranks\private_gs.paa"; }; };
Here is my init.sqf
[missionNamespace, ["class1",0,1]] call BIS_fnc_addRespawnInventory; [missionNamespace, ["class2",0,1]] call BIS_fnc_addRespawnInventory;