Home   Help Search Login Register  

Author Topic: Multiplayer Radio Commands, Revisited  (Read 2087 times)

0 Members and 1 Guest are viewing this topic.

MANVIN

  • Guest
Multiplayer Radio Commands, Revisited
« on: 09 Oct 2003, 14:30:31 »
I was testing an idea for a script I was pondering, when I came upon an odd occurrance.

In the enclosed mission, there are two Radio Triggers, both for Radio Alpha.
One trigger has, in it's condition line: "This AND side Player == WEST", while the other has "This AND side player == EAST".
I would expect that when an EAST player triggers the action, ONLY the EAST script should run, right?

WRONG!

When ANYONE triggers the Radio Trigger
THEN
The EAST script runs on all EAST Players
AND~!!!
The WEST Script runs on all WEST players.

Which defeats the whole purpose of putting the 'side player' condition in the trigger line.

Does anyone know of a way around this, besides using seperate radio commands for each side?

Mr.BoDean

  • Guest
Re:Multiplayer Radio Commands, Revisited
« Reply #1 on: 09 Oct 2003, 20:30:41 »
I was testing an idea for a script I was pondering, when I came upon an odd occurrance.

In the enclosed mission, there are two Radio Triggers, both for Radio Alpha.
One trigger has, in it's condition line: "This AND side Player == WEST", while the other has "This AND side player == EAST".
I would expect that when an EAST player triggers the action, ONLY the EAST script should run, right?

WRONG!

When ANYONE triggers the Radio Trigger
THEN
The EAST script runs on all EAST Players
AND~!!!
The WEST Script runs on all WEST players.

Which defeats the whole purpose of putting the 'side player' condition in the trigger line.

Does anyone know of a way around this, besides using seperate radio commands for each side?

Hey MAN ...vin ,
   Hmmm not exactly sure what you're trying to accomplish here ...but can u use 2 separate scripts ...one for each side? What does the script involve? Are you saying that at some point , only 1 side should have the option of using that trigger and is it a Once only or Repeatable trigger?
 More info might help. In my mission, I am hiding the Radio Alpha trigger until a certain point in the mission ....where it becomes visible AND usable by ONLY one player . Would something like that work for you?

Here's my scenario:

In INIT.sqs: 1 setRadioMsg "NULL" (which hides for all)

In a trigger-activated script following some dialog:
?(player == leader groupname): 1 setRadioMsg "Alpha Blue Join Colonel."

This continues to hide for all but group leader. The rest of your problem sounds like a script issue that you need to add a side parameter in there, maybe.  :-\    ;)  

MANVIN

  • Guest
Re:Multiplayer Radio Commands, Revisited
« Reply #2 on: 09 Oct 2003, 23:17:21 »
This was only a test for a much larger script, of which I don't even know the full details..

But BASICLY:

Each side will have 10 (or more) Radio Comamnds availible to them.
These commands would include things like calling in air support, transports, reinforcements, and a whole bunch of other crap. You're basic stuff.
(Yeah, I know the CoC can already do this, but I still wanna see what I can make of it. Helps ya learn the script lanugague, ya know?)

Since BOTH sides will have their entire radio sets full (with commands that are supposed to be for only their side), I can't use NULL to hide the radio comamnd.

In the non-working version, there are two Radio triggers for each location. (Alpha, Bravo, etc..) Each with "This AND Side player==<whatever>" in their condition lines. When the triggers are executed, they set 'wcommand=<alpha, bravo, etc...>" for west, or 'ecommand=<alpha, bravo, etc...>" for east. It works all fine and dandy in SINGLE PLAYER... but when you play it in Multiplayer, with players on both sides, when ONE side executes a Radio Trigger, the trigger is also executed for the OTHER side, but only on the computers of players of that Side.

That's very confusing. Let me produce an example mission & script.

If you need to see it happen in multiplay, I can be availible at odd-and-ends times to demonstrate.

In the example mission and script, there are sepreate Radio Triggers for East and West, a single man on the East and West sides, and a Civilian named "Talker." Whenever an East man uses a radio command, Talker types, in globalchat, "East command# recieved", and same for the west.

The anomoly I'm trying to fix is that when an EAST soldier uses a radio command, the East soldier sees: "East command# recieved", AND the West soldier sees: "West command# recieved", even though he never pressed a radio command. This works both ways, for east or west.

I hope that clears things up.

Mr.BoDean

  • Guest
Re:Multiplayer Radio Commands, Revisited
« Reply #3 on: 09 Oct 2003, 23:40:23 »
Hmm , haven't made any 2-sided missions before, but I do understand what you're saying. Do both sides each have an alpha, bravo, etc. radio trigger separately available to them ...I would think so. If not and you were to use Odd numbered radio trigs for East and evens for West, you wouldn't have enough radio trigs for all your functions.
  What I don't understand is why you can't just use a condition in the scripts ...if not the trigger .... that would activate a script for that side versus trying to use 1 script for both sides if that's what is causing the problem.
   i.e. if activated by West , you run "ExtractionW.sqs" and if by East , then "ExtractionE.sqs"  :-\

MANVIN

  • Guest
Re:Multiplayer Radio Commands, Revisited
« Reply #4 on: 09 Oct 2003, 23:49:35 »
Quote
What I don't understand is why you can't just use a condition in the scripts ...if not the trigger .... that would activate a script for that side versus trying to use 1 script for both sides if that's what is causing the problem.
  i.e. if activated by West , you run "ExtractionW.sqs" and if by East , then "ExtractionE.sqs"  

This sounds like it would either work perfectly, or yeild the same results. (I think I've determined why the Radio commands act so funny. I'll explain later..)

Could you provide an example mission of what you mean? It would really help.


***Below are only my assumptions. Expect no facts***

As for why Radio Commands act so funny... Since I'm using an In-Map trigger, and the 'this' activation of the trigger is checking to see if Radio Whatever was activated (but not by whom), it activates Radio Whatever on EVERY computer, making it as if EVERYONE pressed Radio Whatever at the same time.
« Last Edit: 10 Oct 2003, 06:07:42 by MANVIN »

MANVIN

  • Guest
Re:Multiplayer Radio Commands, Revisited
« Reply #5 on: 10 Oct 2003, 07:14:53 »
I tested using two different scripts for each side...

And unfortunately the result was: Both scripts were ran, the east script on east compies, and the west script on west comies.

Any suggestions at all would be very appreciated.

Mr.BoDean

  • Guest
Re:Multiplayer Radio Commands, Revisited
« Reply #6 on: 13 Oct 2003, 21:36:33 »
Hmm ...I'm sure Chris Death could answer this question ...
If you are naming the groups , then you could isolate what each radio trigger is named on each side's radios. And you could call the East script when East triggers radio alpha ...so there must be a side-activation identifier missing somewhere to separate East's radio Alpha trigger form West's Radio Alpha trigger   :P   :-\

MANVIN

  • Guest
Re:Multiplayer Radio Commands, Revisited
« Reply #7 on: 14 Oct 2003, 07:23:54 »
Quote
so there must be a side-activation identifier missing somewhere to separate East's radio Alpha trigger form West's Radio Alpha trigger  

I'm not sure I know what you mean..

Either that, or I don't know how to accomplish what you're getting at. If anyone, Chris Death, Mr.BoDean, or anyone can help, it'd be much appreciated.

Unnamed

  • Guest

MANVIN

  • Guest
Re:Multiplayer Radio Commands, Revisited
« Reply #9 on: 14 Oct 2003, 19:50:40 »
Dear Mr. Unnamed,

I'd like to thank you for your assistance.

Not only did that work EXACTLY as I liked, it simplified EVERYTHING!

Once again, thank you muchly!