HU/playSFX: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
Line 24: Line 24:
*'''looped:''' A [[boolean]] representing whether the sound will be looped
*'''looped:''' A [[boolean]] representing whether the sound will be looped
==Returns==
==Returns==
Visszaad egy [[sound|hang]] elemet, ha a hand sikeresen létre lett hozva, egyébként ''hamis''.
Visszaad egy [[sound|hang]] elemet, ha a hang sikeresen létre lett hozva, egyébként ''hamis''.


{{New feature/item|3.0140|1.4|6443|
{{New feature/item|3.0140|1.4|6443|

Revision as of 21:11, 19 July 2018

Ez a funkció lejátsza a hangokat a nagy GTA hangkonténerből.


[[{{{image}}}|link=|]] Note: Itt egy eszköz, amely lehetővé teszi, hogy könnyedén találj meg bank, és hangazonosítókat: [sfxBrowser:Download].
Dialog-warning.png Warning: Sok játékos használja a GTA:SA-t (különösen a kalóz) verzióit, amelyeknek nulla hangfájljai vannak, így ők jobban tudják tömöríteni ezeket az \AUDIO\SFX\ mappájukban. (Hiányoznak adatok)

Ezek érvénytelen audió fájlok esetén ez a funkció false értéked ad vissza.

Akkor is false értéked ad vissza, ha egy töröld dalt próbál meg lejátszani a legújabb GTA:SA Steam verziójában (és ha a kliens egy GTA: SA Steam másolatát használja.

Szintaxis

element playSFX ( string containerName, int bankId, int soundId [, bool looped = false ] )

Kötelező argumentumok

  • containerName: The name of the audio container. Possible values are: "feet", "genrl", "pain_a", "script", "spc_ea", "spc_fa", "spc_ga", spc_na", "spc_pa"
  • bankId: The audio bank id
  • soundId: The sound id within the audio bank

Tetszőleges Argumentumok

  • looped: A boolean representing whether the sound will be looped

Returns

Visszaad egy hang elemet, ha a hang sikeresen létre lett hozva, egyébként hamis.

Szintaxis 2

element playSFX ( string "radio", string radioStation, int trackId [, bool looped = false ] )

Kötelező argumentumok

  • radio: The string "radio" (used to differentiate to the first syntax)
  • radioStation: The radio station. Possible values are "Adverts", "Ambience", "Police", "Playback FM", "K-Rose", "K-DST", "Cutscene", "Beats", "Bounce FM", "SF-UR", "Radio Los Santos", "Radio X", "CSR 103.9", "K-Jah West", "Master Sounds 98.3", "WCTR".
  • trackId : The radio track id within the radio station audio file

Tetszőleges Argumentumok

  • looped: A boolean representing whether the sound will be looped

Returns

Returns a sound element if the sound was successfully created, false otherwise.

Példa

The following example plays a firealarm sound (looped).

if not playSFX("script", 7, 1, true) then
    outputChatBox("You have to install some missing audio files to hear the sound")
end

Lásd még

Fordította

Surge