You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When locked to a team, attempting to switch to a restricted team, the dialog variable for telling the player which side they were playing as is not displaying.
The message in-game appears as "You have played as %1 for too long...." instead of replacing %1 with variables for 'blufor' or 'opfor'
Have been scratching my head trying to fix this minor issue. Any help is appreciated.
The text was updated successfully, but these errors were encountered:
To anyone else having the same issue, I managed a slight work-around. Not sure it's the best way, or even proper way to achieve it, but it does work.
in client\functions\playerSpawn.sqf
original starting at line 41:
uiNamespace setVariable ["BIS_fnc_guiMessage_status", false];
_msgBox = [localize "STR_WL_Loading_Teamswitched"] spawn BIS_fnc_guiMessage;
Changed to:
uiNamespace setVariable ["BIS_fnc_guiMessage_status", false];
_prevSide = switch (playerSide) do
{
//case "SIDE", in this instance,is the side you are switching to.
case BLUFOR: { "OPFOR" }; //if switching to BLUFOR, say you've played on Opfor too long
case OPFOR: { "BLUFOR" }; //if switching to OPFOR say you've played on BluFor too long.
};
_msgBox = format [localize "STR_WL_Loading_Teamswitched", _prevSide] spawn BIS_fnc_guiMessage;
If this can be considered a 'proper' fix, then go ahead review and close out, otherwise, still open to suggestions on any better method to do this.
When locked to a team, attempting to switch to a restricted team, the dialog variable for telling the player which side they were playing as is not displaying.
The message in-game appears as "You have played as %1 for too long...." instead of replacing %1 with variables for 'blufor' or 'opfor'
Have been scratching my head trying to fix this minor issue. Any help is appreciated.
The text was updated successfully, but these errors were encountered: