PlaySound( <aliasname>, <notification string>, <stoppable flag> )

Module: Sound


Play the sound alias as if coming from the entity

Call this on:

<entity> An entity


self PlaySound("Dirt_skid","skidsound",true);

Required Args:

  • 1 : <aliasname> The sound alias to play

Optional Args

  • 1 : <notification string> If present, the sound will notify this string on this entity when done. (Single player only)
  • 2 : <stoppable flag> If present and true, then this sound can be interrupted by another playsound command with notification string. It is a script error for a playsound that does not have this flag set to get interrupted by another playsound with notify, or for a playsound with notify that does not have this flag set to interrupt another playsound with notify. (Single player only)