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


Module: Sound

Summary:

Play the sound alias as if coming from the entity, as a master sound



Call this on:

<entity> An entity



Example:

  self PlaySoundAsMaster( "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)