ActivatorSound

From Eternity Wiki
Revision as of 10:47, 21 November 2020 by Printz (talk | contribs)
Jump to navigationJump to search

Description

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

void ActivatorSound(str sound, int volume)

Parameters

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

Return value

Examples

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

ActivatorSound("pdiehi", 100);

Notes

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