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

    Function PlayMusic

    • Plays a music event for all players. You can play any music event that is part of the loaded music packages. You do not need to stop an event before playing another event in the same package. You can stop or pause music specifically for everyone or any team, squad, or player, even if it was previously playing for a larger audience, by playing events like mod.MusicEvents.Core_Stop or mod.MusicEvents.Gauntlet_Pause, as long as its for the same music package.

      Parameters

      Returns void

    • Plays a music event for a specific team. You do not need to stop an event before playing another event in the same package. You can stop or pause music specifically for everyone or any team, squad, or player, even if it was previously playing for a larger audience, by playing events like mod.MusicEvents.Core_Stop or mod.MusicEvents.Gauntlet_Pause, as long as its for the same music package.

      Parameters

      • musicEvent: MusicEvents

        The music event to play.

      • team: Team

        The team to play the music event for.

      Returns void

    • Plays a music event for a specific squad. You do not need to stop an event before playing another event in the same package. You can stop or pause music specifically for everyone or any team, squad, or player, even if it was previously playing for a larger audience, by playing events like mod.MusicEvents.Core_Stop or mod.MusicEvents.Gauntlet_Pause, as long as its for the same music package.

      Parameters

      • musicEvent: MusicEvents

        The music event to play.

      • squad: Squad

        The squad to play the music event for.

      Returns void

    • Plays a music event for a specific player. You do not need to stop an event before playing another event in the same package. You can stop or pause music specifically for everyone or any team, squad, or player, even if it was previously playing for a larger audience, by playing events like mod.MusicEvents.Core_Stop or mod.MusicEvents.Gauntlet_Pause, as long as its for the same music package.

      Parameters

      • musicEvent: MusicEvents

        The music event to play.

      • player: Player

        The player to play the music event for.

      Returns void

    • Triggers a music event.

      Parameters

      Returns void

    • Triggers a music event.

      Parameters

      Returns void

    • Triggers a music event.

      Parameters

      Returns void

    • Triggers a music event.

      Parameters

      Returns void