🇭🇰
Sleeping Dogs: DE (Script API)
  • Overview
  • ⛔Const
  • đŸ”ĸEnums
  • đŸ“ĻClasses
    • 🌈Color
    • 💾Config
    • 🚀Console
    • â˜¯ī¸Font
    • đŸ‘ŊHash
    • đŸ–ŧī¸Image
    • âŒ¨ī¸Input
    • đŸ‘ī¸Renderer
    • âŗTimer
    • 2ī¸âƒŖVector2
    • 3ī¸âƒŖVector3
  • đŸ—ƒī¸Game Classes
    • â„šī¸Overview
    • 🔊Audio
    • 📹Camera
    • đŸĢ‚CollisionData
    • 🎮GameInput
    • 🧩GameSlice
    • đŸ“ēHud
    • 📊Metrics
    • 📱PDA
    • 📈ProgressionTracker
    • 💡SimObject
    • 📮SimObjectProp
    • 🧍SimCharacter
    • 🚘SimVehicle
    • đŸ”ĢSimWeapon
    • â˜€ī¸TimeOfDayManager
  • 📩Callbacks
    • OnCollision
    • OnCharacterDeath
    • OnCharacterSpawn
    • OnGameUpdate
    • OnRender
    • OnUnload
    • OnVehicleDeath
Powered by GitBook
On this page

Was this helpful?

  1. Game Classes

Audio

PreviousOverviewNextCamera

Last updated 2 years ago

Was this helpful?

You can find bank/sound names by , and speech list by .

To find some other banks/events you can check it by .

Static Functions:

.PlaySound

Audio.PlaySound(bank: string, name: string): boolean

Argument
Type
Description

bank

string

Name of the bank

name

string

Name of the sound

Returns true if sound was successfully played.

.StopSound

Audio.StopSound(name: string)

Argument
Type
Description

name

string

Name of the sound

Stops the playing sound by name.

.PlaySpeech

Audio.PlaySpeech(character: SimCharacter, event: string, name: string): boolean

Argument
Type
Description

character

SimCharacter

SimCharacter object that will speak

event

string

Event of the sound

event

string

Name of the sound

Returns true if speech was sucessfully played.

.StopSpeech

Audio.StopSpeech(character: SimCharacter)

Argument
Type
Description

character

SimCharacter

SimCharacter object that will stop speaking

Stops the speaking of the character.

đŸ—ƒī¸
🔊
clicking here
clicking here
clicking here