OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: popS 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?
-
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.
-
Thx for the tip. Ill go and look into that!
-
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?
-
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.
-
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