Class AudioStateSetCommand


public class AudioStateSetCommand extends AbstractWorldCommand
Sets a server-authority AudioState axis to one of its declared values on the target players. Rejects client-authority axes - those must be set from client code.

Scope defaults to AudioStateSetCommand.Scope.World (every player in the executor's world). AudioStateSetCommand.Scope.Self targets only the command sender. AudioStateSetCommand.Scope.Players targets the explicit set named by the --players list arg (required when --scope=Players).

Optional fadeMs and curve build a per-call transition override the client uses instead of the axis's matching transition. If both are absent, the client resolves via the axis's own transition edges or DefaultTransition.

  • Constructor Details

    • AudioStateSetCommand

      public AudioStateSetCommand()