From SRB2 Wiki
Jump to navigation Jump to search

A_PlaySound is an action that plays a sound effect. Var1 determines the sound ID. If the lower 16 bits of Var2 are set to 0, the sound is played without an origin, if set to 1, the actor is used as the sound's origin. The upper 16 bits of Var2 determine if the sound should play during the preticker; if set to 1, the sound will not play during the preticker.

Attributes Use
Var1 Sound name
Var2 Upper 16 bits: 0 – Play sound during preticker; 1 – Don't play sound during preticker

Lower 16 bits: 0 – play sound without an origin; 1 – use actor as sound origin

  Actions – Sounds [view]