Home   Help Search Login Register  

Author Topic: Radiocalls and caller ...  (Read 1436 times)

0 Members and 1 Guest are viewing this topic.

popS

  • Guest
Radiocalls and caller ...
« on: 03 Feb 2005, 14:45:01 »
Two things.

1. Is it possible to have different radiocommands for west and east? When I use a trigger activated by radio, it shows up for both west and east.

I dont want to disable radio for one side, I would prefer if both east and west had radio.

2. Id there a command or someway else of detecting who is issuing the radiocommad?

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re:Radiocalls and caller ...
« Reply #1 on: 03 Feb 2005, 15:44:06 »
Teo quick answers:
1) Study the command "setRadioMsg" in the comref. It's the solution to your problem.

2) OFP detects the caller of the radioMsg and uses it to display the name of the caller in the group/vehicle/etc channel. But I don't know how to detect it. But if you send the radioMsg with an "addAction" command instead of the radio triggers it should be fairly easy to identify caller in the scripts. There's also some portable radio addOns that are carried as weapons. I think you can use a "fired" eventhandler to start a radio script from them.
OFPEC | Intel Depot
RETARDED Ooops... Retired!

popS

  • Guest
Re:Radiocalls and caller ...
« Reply #2 on: 03 Feb 2005, 15:56:08 »
Thx for the tip. Ill go and look into that!

Offline Mr.Peanut

  • Former Staff
  • ****
  • urp!
Re:Radiocalls and caller ...
« Reply #3 on: 03 Feb 2005, 15:59:31 »
If you search the Multiplayer forum for Radio you will find some possible answers that involve dedicating a few radio channels to each side.

Can you not use ThisList Select 0 to determine who activated the radio trigger?

Finally, what happens if you group a radio trigger with a given side?
 
urp!

popS

  • Guest
Re:Radiocalls and caller ...
« Reply #4 on: 04 Feb 2005, 12:53:53 »
Thx for your help Mr.Peanut.

Ive searched the forum and found a few suggestions on how to fix it. Not many.

Ill try out the ThisList thing.

The grouping doesnt seem to work, because if you try to group the trigger to a group, the option to activate via radio dissapears.

Dingmatt

  • Guest
Re:Radiocalls and caller ...
« Reply #5 on: 05 Feb 2005, 20:00:04 »
I'm not sure if I remember this correctly, but you can enable and disable the radio-selections with X SetRadioMsg "...". To make radiomessages visible to only one side you'll have to disable all radioMsg for all players ( X setRadioMsg "NULL" ) and then enable the commands for each player (client side only). For example in initPlayer or in the beginning section of updatePlayer
?((side player) == west):1 setRadioMsg "RadioAlpha"
?((side player) == east):5 setRadioMsg "RadioDelta"
You will need a trigger for RadioAlpha and RadioDelta in your mission.sqm then.
h