Jump to content
eldarius

globalchat in multiplayer

Recommended Posts

Hello,

I want to post a message in the chat.

I use the "globalchat" method as well: "global playerChat _messageroll;" only the message is displayed only on the player who calls this command.

 

I would like this to appear in multiplayer. I tried the following codes: [global playerChat _messageroll] call BIS_fnc_MP;  _messageroll remoteExec ["globalChat"]; but no result, someone would have a solution to my problem.

Share this post


Link to post
Share on other sites
1 hour ago, eldarius said:

I use the "globalchat" method as well: "global playerChat _messageroll;"

 

Huh?

Share this post


Link to post
Share on other sites

To use remoteExec it needs to be:

 

[_unit,_message] remoteExec  ["globalChat",0];

https://community.bistudio.com/wiki/remoteExec

Example:

[unit1,"Hello"] remoteExec ["globalChat",0];

 

Same as any if the other "chat" commands, globalChat is only local to where it's called from, hence why it's only seen on the client that it's called from. But i think you have at least recognised this, and were just using remoteExec incorrectly.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×