Home   Help Search Login Register  

Author Topic: Trigger radio alpha, bravo, charlie shown ONLY on actual leader's radio  (Read 2208 times)

0 Members and 1 Guest are viewing this topic.

gundernak

  • Guest
Hi everyone,

I have a MP mission and I have made 3 options triggered by player's radio.
I use 3 triggers - radio alpha,bravo, charlie

I would like to achieve that these 3 radio options would be shown always ONLY on the actual leader's radio screen.

I wouldn't like other team members to use these radio options.

How can I set it?

thanks in advance

Mr.BoDean

  • Guest
Hi gundy,
   Okay, this one I can answer , cuz someone recently helped me on it.  ;)

In Init. sqs:

1 setRadioMsg "NULL"
2 setRadioMsg "NULL"
3 setRadioMsg "NULL"

In a trigger or script somewhere:

?(player == leader groupname): 1 setRadioMsg "Blah Blah 1."
?(player == leader groupname): 2 setRadioMsg "Blah Blah 2."
?(player == leader groupname): 3 setRadioMsg "Blah Blah 3."

 8)   :D
« Last Edit: 12 Oct 2003, 08:53:41 by Mr.BoDean »

gundernak

  • Guest
thanks, I really appriciate
 ;)

 I try...

This mission is multiplayer, and the other players are PLAYER for the game as well, I think.

Unfortunatelly I can not test is now, because there is just one PC here.

What do you think how it will work when there are more players in the MP mission?
 :-\

Mr.BoDean

  • Guest
Hi Gundy, I PM'd you , but here is also a small test mission using this command in a script. Try it out as the leader (of colgrp) , then as a player in the squad.  ;)

It's on Malden.

Offline CrashDome

  • Members
  • *
gundernak:

Becareful! there can only be one PLAYER! The rest must be PLAYABLE... this is so single player games only have one guy available. If you changed them all to PLAYER go back and check... the others most likely have switched to either PLAYABLE or something else.
I cannot remember, it's been so long. I just use Playable out of habit now.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Don't worry about how many players there can be.

In multiplayer - player always returns the local player
(only exception on a dedicated server, where there is
in fact no player).

Therefore you would also only need one single condition to
enable let's say one single radio call for each groupleader:

leader group player == player

or:

leader player == player

Off course, if you have different radio calls for different groups,
you need to do it like BoDean suggested.

~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

gundernak

  • Guest
THANKS MEN!

I am trying...
 :)

Mr.BoDean

  • Guest
gundernak:

Becareful! there can only be one PLAYER! The rest must be PLAYABLE... this is so single player games only have one guy available. If you changed them all to PLAYER go back and check... the others most likely have switched to either PLAYABLE or something else.
I cannot remember, it's been so long. I just use Playable out of habit now.

Just for clarification: There is only ONE "player" unit, no matter what. If you want to test your mission in the editor and switch roles by assigning "player" to a different unit, "playable" or "non-playable", the former "player" unit will become "non-playable" by default . Same goes for any "playable" units when you switch to them and then back. So always make sure the units you want to be "playable" have the purple circles (or red for player) around them before you save and export to MP!  ;)

gundernak

  • Guest
OK!

It seems to be working!!! (but in my experience I could say it surely after a week, always there is some thingy causing further problems... ;)- but let's hope...)

I start this script at the beginning of the mission...:

1 setRadioMsg "NULL"

?(player == leader WestGrp): 1 setRadioMsg "Charlie Team Move In"

...and it looks enough, no need for loop or something

thanks everyone!!!

p.s.:

I tried the mission  Mr.BoDean sent me (appriciation), and I have set the respawning (group).
And It was new to me that respawning works only after I exported the mission in MPmission, and doesn't work from editor started mission...
BUT in my mission (I am editing since a few months) respawn always worked started from the editor!!! :o

How is it possible ?

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Respawn works aswell for preview in the editor.

The only thing you need to take care is:

you need to use the editor in multiplayer (if you click on
multiplayer - you will find it in the map selection at the
top of the list).

In singleplayer respawn doesn't work, so it doesn't work
in the editor from the main-menu (as this one is for singleplayer)

~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

gundernak

  • Guest
hmm ok, thanks