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
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