ActivatorSound: Difference between revisions

From Eternity Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 9: Line 9:
|notes=The activator can be a thing or a polyobject. If none of these is the activator, then the sound will be ambient.
|notes=The activator can be a thing or a polyobject. If none of these is the activator, then the sound will be ambient.
|id=ACC internal
|id=ACC internal
|seealso=*[[ThingSound]]}}
|seealso=
*[[AmbientSound]]
*[[ThingSound]]}}

Latest revision as of 10:48, 21 November 2020

Description[edit]

This is an ACS built-in function.

Starts a sound from script's activator, at the given volume. If there's no activating thing, the sound will be ambient.

Usage[edit]

void ActivatorSound(str sound, int volume)

Parameters[edit]

  • sound: name of sound to play.
  • volume: volume at which to play the sound. Valid range is 0-127.

Return value[edit]

Examples[edit]

This causes the activator to make the high-pitched player scream at a moderate volume.

ActivatorSound("pdiehi", 100);

Notes[edit]

The activator can be a thing or a polyobject. If none of these is the activator, then the sound will be ambient.

This function's identification in zspecial.acs is: ACC internal.

See also[edit]