Home   Help Search Login Register  

Author Topic: Multiplayer sidechat  (Read 1038 times)

0 Members and 1 Guest are viewing this topic.

cliff

  • Guest
Multiplayer sidechat
« on: 07 Oct 2003, 23:42:05 »
Just found out that "this sidechat "Hello World"" messages is local and wonÂ't display on other players computers in MP games. I assume I have to use the "publicvariable" command for this.

Can someone help me get started on how I accomplish this in a MP game?

To clarify, I want say Papabear to say to all west soldiers "go home boys", and all the players must see it.
How?

Mr.BoDean

  • Guest
Re:Multiplayer sidechat
« Reply #1 on: 08 Oct 2003, 10:59:57 »
Hiyo Cliff,

 Ok, first off, you'll need this in your INIT.sqs or any unit's int. line:

PapaBear=[West,"HQ"]

(Or East if that's player's side)

Then you can use
 
Papabear sidechat "Blahbety blah.."

in the On Activation line of a trigger or waypoint , though triggers are more reliable .   ;)

cliff

  • Guest
Re:Multiplayer sidechat
« Reply #2 on: 08 Oct 2003, 20:52:13 »
Ok, thanks.

One thing though, will that message be displayed on all computers in a MPgame, or do I have to send it as some kind of "publicvariable"?

Mr.BoDean

  • Guest
Re:Multiplayer sidechat
« Reply #3 on: 09 Oct 2003, 10:28:52 »
I've only used what I showed you above and that seems to work fine for me in MP. Sidechat should show on all players screens  on that side ;groupchat should show on all players screens in that group,etc.   The client/server publicvariable guys would have to answer that question further.  8)
« Last Edit: 09 Oct 2003, 10:31:27 by Mr.BoDean »