Home   Help Search Login Register  

Author Topic: sidechat, globalchat, publicvariable - MP  (Read 4491 times)

0 Members and 1 Guest are viewing this topic.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re: sidechat, globalchat, publicvariable - MP
« Reply #15 on: 05 Oct 2006, 13:19:17 »
hmm - i must admit i've entered the discussion at the point where it was about
transmiting the message to the clients. I wasn't really aware of the stringtable.

Basically it should work without publicVariable on every client, maybe it's just
a question of how and where you execute the message.

Under which circumstances the message appears - triggers scripts custom actions?

But to answer the question, yes you would put the stringstable strings into the
array without "", since they are strings already.

You can try that method with the arrays still and see if it is of some help.

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline SniperAndy

  • Members
  • *
    • VBS Community
Re: sidechat, globalchat, publicvariable - MP
« Reply #16 on: 05 Oct 2006, 14:40:28 »
Okay, thanks to you guys.
I got some good insight now and will give this a good swing today and see what the results are.  :good: Thanks...

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re: sidechat, globalchat, publicvariable - MP
« Reply #17 on: 05 Oct 2006, 15:40:02 »
In your init.sqs put something like this:
Code: [Select]
msg_array = [localize STR_YOUSTINK, localize STR_DONOT, localize STR_YOUDOTO,...]
If your strings are only in 1 language, you do not need the localize but it is good practise to use it regardless. You never know, someone may want to translate your mission.
urp!