Train Simulator NEXT
In This Topic
    SetSoundValue function
    In This Topic

    This function sets a sound property.

    Syntax

    Copy Code
    float SetSoundValue(
        int SoundIndex,
        string Name,
        float Value 
    );

    Parameters

    SoundIndex

    Type: int

    The sound index.

    Name

    Type: string

    The name of the property to set.

    Value

    Type: float

    The value of the property.

    Returns

    Returns a float with the applied value of the sound property.

    Returns FLT_MAX if there was an internal error or the sound or sound property was not found.

    See Also