ActivatorSound
From Eternity Wiki
Jump to navigationJump to search
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.