Jass:SetAmbientNightSound
Aus Mappedia
| Funktion: SetAmbientNightSound | |
|---|---|
| Parameter: | string |
| Rückgabewert: | nothing |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function SetAmbientNightSound takes string inLabel returns nothing local real ToD // Stop old sound, if necessary if (bj_nightAmbientSound != null) then call StopSound(bj_nightAmbientSound, true, true) endif // Create new sound set bj_nightAmbientSound = CreateMIDISound(inLabel, 20, 20) // Start the sound if necessary, based on current time set ToD = GetTimeOfDay() if (ToD < bj_TOD_DAWN or ToD >= bj_TOD_DUSK) then call StartSound(bj_nightAmbientSound) endif endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| string | inLabel |
