Commands/Lua

Reference for console commands, Lua hooks and Lua commands in CS2D.

CS2D Command CS2D Console Commands

CS2D Command sv_stopsound

Categories

Parameters

  • soundfile (text): a path to a soundfile. relative to the sfx folder
  • player (0-32): ID of a player or 0 for all players

Info

Stops playback of all sounds with the given file name which have been started before using sv_sound or sv_sound2. Playback can be stopped for all players (player id 0) or for a specific player only.

Lua Hook Lua Hooks

Lua Command Lua Commands