bf6-portal-mod-types
    Preparing search index...

    Function SetMusicParam

    • Updates any parameters that a music package might have.

      Parameters

      • musicParam: MusicParams

        The music parameter to update.

      • paramValue: number

        The value to set the parameter to. Even if the music parameter’s name suggests that it’s a boolean, you must still input a number value such as 0 or 1 (instead of false or true).

      Returns void

      // This ensures that all core music will play their "winning" variants, if they have one.
      mod.SetMusicParam(mod.MusicParams.Core_IsWinning, 1);
    • Updates any parameters that a music package might have, for a specific team.

      Parameters

      • musicParam: MusicParams

        The music parameter to update.

      • paramValue: number

        The value to set the parameter to. Even if the music parameter’s name suggests that it’s a boolean, you must still input a number value such as 0 or 1 (instead of false or true).

      • team: Team

        The team to update the parameter for.

      Returns void

      // This ensures that all core music will play their "winning" variants, if they have one.
      mod.SetMusicParam(mod.MusicParams.Core_IsWinning, 1);
    • Updates any parameters that a music package might have, for a specific squad.

      Parameters

      • musicParam: MusicParams

        The music parameter to update.

      • paramValue: number

        The value to set the parameter to. Even if the music parameter’s name suggests that it’s a boolean, you must still input a number value such as 0 or 1 (instead of false or true).

      • squad: Squad

        The squad to update the parameter for.

      Returns void

      // This ensures that all core music will play their "winning" variants, if they have one.
      mod.SetMusicParam(mod.MusicParams.Core_IsWinning, 1);
    • Updates any parameters that a music package might have, for a specific player.

      Parameters

      • musicParam: MusicParams

        The music parameter to update.

      • paramValue: number

        The value to set the parameter to. Even if the music parameter’s name suggests that it’s a boolean, you must still input a number value such as 0 or 1 (instead of false or true).

      • player: Player

        The player to update the parameter for.

      Returns void

      // This ensures that all core music will play their "winning" variants, if they have one.
      mod.SetMusicParam(mod.MusicParams.Core_IsWinning, 1);
    • Updates any parameters that a music package might have.

      Parameters

      Returns void

    • Updates any parameters that a music package might have.

      Parameters

      Returns void

    • Updates any parameters that a music package might have.

      Parameters

      Returns void

    • Updates any parameters that a music package might have.

      Parameters

      Returns void