Jump to content

PlaySound3D


DrifteR

Recommended Posts

Hi

i have a question (wiki is not working now)

i have this code

local sound = playSound3D("music.mp3", 614, -1896, 3.5, true) 
setSoundVolume( sound, 100) 
  

My question is, how to expand the radios of the melody, i walk 3 meters from the center and it cuts off the melody!

Can someone help?

___________________________________________________________________________________________

Sorry for my bad english, im from romania

Link to comment
  • Discord Moderators

setSoundMaxDistance & setSoundMinDistance.

Min distance should be 0, and max distance should be 3, for it to fade and stop playing after 3 metres

Since wiki is down, it would be something like:

setSoundMaxDistance ( sound, int distance )

setSoundMinDistance ( sound, int distance )

Edited by Guest
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...