625 B
625 B
Function: PlaySound(spawn, sound_string, x, y, z, player)
Description: Plays a sound using the sound_string to the area or specified player.
Parameters:
spawn
(Spawn) - Spawn object representingspawn
.sound_string
(string) - Stringsound_string
.x
(int32) - Integer valuex
.y
(int32) - Integer valuey
.z
(int32) - Integer valuez
.player
(Spawn) - Spawn object representingplayer
.
Returns: None.
Example:
-- From ItemScripts/BardCertificationPapers.lua
PlaySound(Player, "sounds/test/endquest.wav", GetX(Player), GetY(Player), GetZ(Player), Player)