Class Objects.SoundSource

Sound source

Functions

SoundSource:GetPosition() Get the sound source's position.
SoundSource:SetPosition(position) Set the sound source's position.
SoundSource:GetName() Get the sound source's unique string identifier.
SoundSource:SetName(name) Set the sound source's unique string identifier.
SoundSource:GetSoundID() Get the sound source's sound ID.
SoundSource:SetSoundID(name) Set the sound source's ID.


Functions

SoundSource:GetPosition()
Get the sound source's position.

Returns:

    Vec3 Sound source's position.
SoundSource:SetPosition(position)
Set the sound source's position.

Parameters:

  • position Vec3 The new position of the sound source.
SoundSource:GetName()
Get the sound source's unique string identifier.

Returns:

    string The sound source's name.
SoundSource:SetName(name)
Set the sound source's unique string identifier.

Parameters:

  • name string The sound source's new name.
SoundSource:GetSoundID()
Get the sound source's sound ID.

Returns:

    int The ID of the sound.
SoundSource:SetSoundID(name)
Set the sound source's ID.

Parameters:

  • name int The sound source's new sound ID.
generated by TEN-LDoc (a fork of LDoc 1.4.6)