Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Trying to send command for non-local player

$
0
0
So the goal here is to have the ability for clients to chat with eachother, but unfortunately only the host can chat and the clients can see the hosts messages but cannot send their own. Here is the basic setup:

void SendMessage(string message){
if(!string.IsNullOrEmpty(message.Trim())){
CmdChatMessage(message);
}
}

[Command]//Remote Procedure Call
public void CmdChatMessage(string message){
chatHistory.Add(message);...

Trying to send command for non-local player

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>