BasePlayerPlayAudioStream Method (String, Vector3, Single) |
Play an 'audio stream' for this
BasePlayer. Normal audio files also work (e.g. MP3).
Namespace:
SampSharp.GameMode.World
Assembly:
SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax public virtual void PlayAudioStream(
string url,
Vector3 position,
float distance
)
Parameters
- url
- Type: SystemString
The url to play. Valid formats are mp3 and ogg/vorbis. A link to a .pls (playlist) file will play
that playlist.
- position
- Type: SampSharp.GameModeVector3
The position at which to play the audio. Has no effect unless usepos is set to True. - distance
- Type: SystemSingle
The distance over which the audio will be heard. Has no effect unless usepos is set to True.
See Also