. . . Posted May 10, 2019 Share Posted May 10, 2019 (edited) Hello! Like the title says that's what me and my friend need help figuring out, thanks for your time and any help Edited May 11, 2019 by Warbucks Link to comment Share on other sites More sharing options...
. . . Posted May 11, 2019 Author Share Posted May 11, 2019 Okay, so I remembered Woodie plays music which only his player can hear it so I checked out his code and found "TheFocalPoint", using this to emit sound seems to work fine in non-caves world, but in caves-world the sound doesn't even emit? Help me pleeaaaseee ! Thanks for your time and help, have a great day ! Link to comment Share on other sites More sharing options...
. . . Posted May 13, 2019 Author Share Posted May 13, 2019 bump Link to comment Share on other sites More sharing options...
Ultroman Posted May 13, 2019 Share Posted May 13, 2019 How does Woodie solve this? Can Woodie make the sound in a cave? Link to comment Share on other sites More sharing options...
CarlZalph Posted May 13, 2019 Share Posted May 13, 2019 TheFocalPoint last I recall exists only on the client. Woodie's code relies on the client knowing that he's in beaver mode to start playing the audio. Since the audio doesn't change it doesn't need to be networked so the controller is just a single bit (beaver on/off). It may be packed into a byte with other fields, but the idea is the same. If you want to play arbitrary audio onto only one player in specific that's controlled by the server, then you're going to need to use a string netvar to hold the sound name and helper netvars to tell the client what it should do with it. Otherwise you'll have netvars for specific events that play static sound files like Klei did with Woodie. Link to comment Share on other sites More sharing options...
. . . Posted May 16, 2019 Author Share Posted May 16, 2019 (edited) Is there any examples for how to do this? I'm not really good with coding stuff and don't really know where to start and would really like the sound to only player for the player not everyone, welp Edited May 16, 2019 by Warbucks Link to comment Share on other sites More sharing options...
CarlZalph Posted May 16, 2019 Share Posted May 16, 2019 (edited) 8 hours ago, Warbucks said: Is there any examples for how to do this? I'm not really good with coding stuff and don't really know where to start and would really like the sound to only player for the player not everyone, welp Well if it's a set sound effect and you want it played, then look at how Woodie's is handled, it uses the netvar for beavermode. Otherwise you'll be creating at least one string netvar and have the client play the string as a sound whenever it changes. Edited May 16, 2019 by CarlZalph Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now