Home   Help Search Login Register  

Author Topic: Setradiomsg  (Read 1363 times)

0 Members and 1 Guest are viewing this topic.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Setradiomsg
« on: 26 Jan 2005, 19:43:04 »
Can someone clear up this whole thing?

I have a trigger which is radio Hotel. When You hit 0-0-Hotel, it starts a script.

I want the radio message only to appear when I do a certain thing or get to a certain place. That's where setradiomsg comes in.

Only I have no idea what I'm doing. Anyone help? The ed depot is not helping me.
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re:Setradiomsg
« Reply #1 on: 26 Jan 2005, 20:08:50 »
To hide a RadioMsg put this in your init, a trigger or a script:  
Code: [Select]
X SetRadioMsg "NULL"where X is the desired radio channel. Alpha = 1, Bravo =2 etc.

Then use :
Code: [Select]
X SetRadioMsg "Your Text Here"to show it again. You could place the above code live in the On Activation field of another trigger.  




« Last Edit: 26 Jan 2005, 20:15:33 by Mr.Peanut »
urp!

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Setradiomsg
« Reply #2 on: 26 Jan 2005, 20:51:13 »
Actually, radio triggers do a lot of the work for you. First off, the "text" field of the trigger will normally be displayed, unless you overwrite it with the setradiomsg command, so in most cases there is no need to use that command at all.

Even better, when a radio trigger is unable to be activated, it will AUTOMATICALLY hide that radio channel from the player. For example, if the condition in your radio trigger was:

this AND !(alive Enemy1)

Then the radio message would only be shown when Enemy1 was dead.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

AK-Chester

  • Guest
Re:Setradiomsg
« Reply #3 on: 27 Jan 2005, 20:56:18 »
Even better, when a radio trigger is unable to be activated, it will AUTOMATICALLY hide that radio channel from the player. For example, if the condition in your radio trigger was:

this AND !(alive Enemy1)

Then the radio message would only be shown when Enemy1 was dead.
Negative. You won't be able to activate that radio trigger until Enemy1 is dead BUT the text appears in the command menu anyway (and on your radio, indeed).

To hide a radio triggers' text right away simply put "Null" in it's text field (without quotes). And then make it available whenever you want using the setRadioMsg command (just like Mr.Peanut said).

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Setradiomsg
« Reply #4 on: 28 Jan 2005, 00:10:23 »
Quote
Negative. You won't be able to activate that radio trigger until Enemy1 is dead BUT the text appears in the command menu anyway (and on your radio, indeed).

Hmm.... testing it, you're right. I could have SWORN there were certain circumstances where the text would automatically change, but I guess that isn't it... Ah well, I guess I should check things out before I start speaking. :P
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Setradiomsg
« Reply #5 on: 28 Jan 2005, 12:36:09 »
It's funny, I could have sworn the same.    In fact I went off and tested it too.

Knowing OFP, myself and General Barron, I bet there ARE very particular cirumstances when this is the case.     But so particular that we only hit upon them - once - by accident and will never find them again.
Plenty of reviewed ArmA missions for you to play

AK-Chester

  • Guest
Re:Setradiomsg
« Reply #6 on: 28 Jan 2005, 19:58:39 »
I would never swear on anything that's related to editing ofp, EVEN if I tested it.  ;D