OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting Multiplayer => Topic started by: Luke on 03 Sep 2008, 06:20:28
-
I am confused as how sidechat works. ==> ??? (me.)
I have tried using sidechat, but nothing comes up.
The COMREF says it does not broadcast the message.
Yet, I see the sidechat commands on Mando Gun/Missile (plug), which show up fine on my computer.
How does this command work?
Luke
-
Try messing around with this.. I know it works..
keep in mind you may have to enable and disable raido if you choose to use this kind of chat..
I'm not sure exaclty.. been a while since i used this..
It's from an old mission I made.
EnableRadio TRUE
player sideradio "radio2"
[_side,"HQ"] sideChat "Maybe this text might work for you."
enable and disable radio is nice for missions with ai in them.
you can disable the radio for the mission and not have to hear them.
or re enable it in certain scripts just for those scripts.
then disable it again at the end of the script, to keep chatter down from ai's.
always good. :)
unless your using them to spot things.. XD
-
Radio is not the same as chat. They are two different systems, as far as I am aware.
BIS's sideChat command, as well as the other *chat commands, is local to the machine that it is run on. It does not, itself, broadcast the message across the network. Triggers placed in the editor are global, so running a sideChat from a trigger (or in a script run from a trigger) will be seen on everyone's machine. When you use sideChat only on the local machine, such as inside an action handler script (one called by addAction), it will only be seen by the person who activated the action, unless you manually broadcast a request to run the chat command on everyone's client machine.
Read our MP tutorial (http://www.ofpec.com/ed_depot/mptutorial/)for more information on these issues.