15.09.2017, 09:46
Quote:
With PlayAudioStreamForPlayer, you can stream the audio at a set location (coordinates) or you can simply stream directly to the player. Seeing as you're getting the player's position and then streaming to those coordinates, I can only assume that you're trying to create a direct stream to the player's client. In this case, you don't need to use the coordinate parameters of PlayAudioStreamForPlayer.
Simply change: PHP код:
PHP код:
|
There's an object and sound is coming smoothly out from it with 30.0 distance and every player around hear it, but when moving away from object, music starts to go away and then stream stops (OnPlayerLeaveDynamicArea). If player again goes in the dynamic sphere, stream starts for him at place of the object. (OnPlayerEnterDynamicArea). I'm passing all 'if' statements and the music should play if we thing logically. But I don't know why it does not.