Jump to content
beako

How to obtain "displayName" of class selected in CfgRespawnInventory

Recommended Posts

HI All,

 

In my description.ext below I have 3 different displayNames, but want to identify the "displayName"  the player selected from the respawn menu?

 

description.ext

respawnTemplates[] = {"MenuPosition","MenuInventory"};
class CfgRespawnInventory
{
	class WEST1
	{
		displayName = "Capt 'Deuce' Williams"; // Name visible in the menu
		...
	};
	class WEST2
	{
		displayName = "Sgt Thomas 'Mac' Macintyre"; // Name visible in the menu
		...
	};
	class WEST3
	{
		displayName = "Lt John Davis Tyler"; // Name visible in the menu
		...
	};
};

How could I use [missionconfigfile >> "CfgRespawnInventory" >> "WEST2"] call BIS_fnc_displayName to identify the character the player selected from the respawn menu?

Share this post


Link to post
Share on other sites

How do you differentiate the three loadouts? I guess they have different weapons or uniforms? If so, you could check for those and then tell what respawn inventory was used.

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

×