Home   Help Search Login Register  

Author Topic: Enable & Disable Radio messages  (Read 513 times)

0 Members and 1 Guest are viewing this topic.

Ace Productions

  • Guest
Enable & Disable Radio messages
« on: 23 Jul 2004, 08:54:58 »
Hello,

When creating a radio message using a trigger, the option will be available in the player's menu from the begining of the mission. How can I script this radio message to be activated at a later stage, ie after an event?

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:Enable & Disable Radio messages
« Reply #1 on: 23 Jul 2004, 09:49:36 »
You can use the setradiomsg command.

Quote
index setRadioMsg text
Operand types:
    index: Number
    text: String
Type of returned value:
    Nothing
Description:
    Set radio message (0, 0, map radio) to given text. Use "NULL" to disable radio slot.

Example:
    0 setRadioMsg "Alpha Radio"

So,
0 setradiomsg "null"
would 'hide' alpha radio from the menu and
0 setradiomsg "bomb their asses"
would bring the alpha slot back in use
Not all is lost.

Ace Productions

  • Guest
Re:Enable & Disable Radio messages
« Reply #2 on: 23 Jul 2004, 11:25:09 »
Artak thanks a lot once again. I'll try it out tonight and report back.

Ace Productions

  • Guest
Re:Enable & Disable Radio messages
« Reply #3 on: 05 Sep 2004, 11:57:18 »
Unfortunatelly it doesn't work like this.

I've tried the following:

A. Set the radio message trigger (Radio Alpha) and 0 setRadioMsg "null" in the init.

B. Set the radio message trigger (Radio Alpha) and 0 setRadioMsg "null" in another trigger activated by anybody.

C. Set the radio message trigger (Radio Alpha) and 0 setRadioMsg "null" in a script activated by an anybody trigger 8 sec after mission start.

Maybe I'm doing something wrong but it doesn't want to work!  ???

Offline Mud_Spike

  • Contributing Member
  • **
Re:Enable & Disable Radio messages
« Reply #4 on: 05 Sep 2004, 12:17:35 »

Ace Productions

  • Guest
Re:Enable & Disable Radio messages
« Reply #5 on: 05 Sep 2004, 15:16:35 »
I am using I was using the executable command reference v1.9 made by HAMMY so I had no idea about those comments.

Thanks a lot my friend Mud_Spike.