Hey ich möchte das mein Intro für jede Fraktion ein anderen Sound abspielt. Kann mir jemand sagen wie das geht!?
Spoiler anzeigen
//Start erst nach Spawn
waitUntil{ !isNull(findDisplay 38500)};
waitUntil{ isNull(findDisplay 38500)};
//Sound
playSound "Intro";
_onScreenTime = 8;
_role1 = "Willkommen auf dem";
_role1names = ["TheProGamers Roleplay Server"];
_role2 = "Unser Teamspeak";
_role2names = ["ts.theprogamers.de"];
_role3 = "Unser Forum:";
_role3names = ["TheProGamers.de"];
_role4 = "Restartzeiten";
_role4names = ["Noch Unbekannt"];
_role5 = "Unsere Owner:";
_role5names = ["Branden"];
_role6 = "Serverversion:";
_role6names = ["Version 1.2 Altis"];
_role7 = "Wir wünschen:";
_role7names = ["Viel Spaß"];
_role8 = "Windows Taste";
_role8names = ["Falls diese nicht geht bitte Reconnecten!"];
{
sleep 2;
_memberFunction = _x select 0;
_memberNames = _x select 1;
_finalText = format ["<t size='0.50' color='#1866c7' align='right'>%1<br /></t>", _memberFunction];
_finalText = _finalText + "<t size='0.70' color='#FFFFFF' align='right'>";
{_finalText = _finalText + format ["%1<br />", _x]} forEach _memberNames;
_finalText = _finalText + "</t>";
_onScreenTime + (((count _memberNames) - 1) * 0.5);
[
_finalText,
[safezoneX + safezoneW - 0.8,0.50], //DEFAULT: 0.5,0.35
[safezoneY + safezoneH - 0.8,0.7], //DEFAULT: 0.8,0.7
_onScreenTime,
0.5
] spawn BIS_fnc_dynamicText;
sleep (_onScreenTime);
} forEach [
//The list below should have exactly the same amount of roles as the list above
[_role1, _role1names],
[_role2, _role2names],
[_role3, _role3names],
[_role4, _role4names],
[_role5, _role5names],
[_role6, _role6names],
[_role7, _role7names],
[_role8, _role8names]
];