Method WorldObject:PlayDistanceSound [-] [+]

The WorldObject plays a sound to a Player

If no Player it will play the sound to everyone near. Sound will fade the further you are from the WorldObject. This method interrupts previously playing sound.

See also WorldObject:PlayDirectSound, WorldObject:PlayMusic

Synopsis

WorldObject:PlayDistanceSound( sound )

WorldObject:PlayDistanceSound( sound, player )

Arguments

number sound

Entry of a sound.

Valid numbers: integers from 0 to 4,294,967,295.

Player player (nil)

Player to play the sound to.

Returns

Nothing.

Generated on 11/04/2018
©2016 - Eluna Lua Engine