wbykos Posted June 18, 2015 Share Posted June 18, 2015 How can i whisper from dedicated server to player? Link to comment https://forums.kleientertainment.com/forums/topic/55416-help-whisper-to-specific-player/ Share on other sites More sharing options...
Seiai Posted June 18, 2015 Share Posted June 18, 2015 @wbykos, like in u as a player want to whisper to another player, or do u literally want the server itself to whisper something to a player in a certain situation? Link to comment https://forums.kleientertainment.com/forums/topic/55416-help-whisper-to-specific-player/#findComment-648158 Share on other sites More sharing options...
wbykos Posted June 19, 2015 Author Share Posted June 19, 2015 @Seiai, By server itself. Like TheNet:Say(message, false), but its going to all players. When im calling TheNet:Say(message, true) i see message only in server console. Link to comment https://forums.kleientertainment.com/forums/topic/55416-help-whisper-to-specific-player/#findComment-648272 Share on other sites More sharing options...
DarkXero Posted June 19, 2015 Share Posted June 19, 2015 wbykos wants to talk from the console/host to specific players without anyone else noticing.Whispers are not private messages, anyone near a player whispering can see the message. TheNet:Say displays on chat, TheNet:Announce displays on top. So a server/client widget is needed, so that the server can send and display strings on the chosen client widget. I don't think there is a SendModRPCToClient, and a net_bool to push an event doesn't make the cut. What we have to do is put a net_string on each player, then the server updates it, the selected client listens the variable get dirty, then displays the message somewhere. Link to comment https://forums.kleientertainment.com/forums/topic/55416-help-whisper-to-specific-player/#findComment-648274 Share on other sites More sharing options...
wbykos Posted June 19, 2015 Author Share Posted June 19, 2015 wbykos wants to talk from the console/host to specific players without anyone else noticing.Whispers are not private messages, anyone near a player whispering can see the message. TheNet:Say displays on chat, TheNet:Announce displays on top. So a server/client widget is needed, so that the server can send and display strings on the chosen client widget. I don't think there is a SendModRPCToClient, and a net_bool to push an event doesn't make the cut. What we have to do is put a net_string on each player, then the server updates it, the selected client listens the variable get dirty, then displays the message somewhere. Hmm... does this mean that if i fake position of the Host and then call TheNet:Say(msg, true) anyone near fake position will receive msg? Possible? Link to comment https://forums.kleientertainment.com/forums/topic/55416-help-whisper-to-specific-player/#findComment-648293 Share on other sites More sharing options...
Seiai Posted June 19, 2015 Share Posted June 19, 2015 (edited) @wbykos, i think u could just address the talker component on the clientside by using networked variables. Edited June 19, 2015 by Seiai Link to comment https://forums.kleientertainment.com/forums/topic/55416-help-whisper-to-specific-player/#findComment-648384 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