OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: cliff 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?
-
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 . ;)
-
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"?
-
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)