Kleinbart Posted August 12, 2022 Posted August 12, 2022 Hello all I can use the function "outTextForUnit" in MP to send the pilot/unit specific messages. The message should be sent after the pilot requests it in the radio menu. I am looking for a way or a function which gives me the name of the requesting pilot/unit. Does anyone know a solution? Thanks for your help.
Kanelbolle Posted August 12, 2022 Posted August 12, 2022 (edited) You could just provide the name or id of the group/unit in the function as a parameter when adding the radio command. Example: missionCommands.addCommandForGroup(groupId, 'Radio menu 1', nil , what function to run, groupname or unitname or id) the last part after "," is the parameter. You can read more here: https://wiki.hoggitworld.com/view/DCS_func_addCommandForGroup Edited August 12, 2022 by Kanelbolle WARGAMES Servers: https://forum.dcs.world/topic/301046-wargames-server-pvp-and-pve-campaign-servers/ Scripts: RGC & SPGG https://github.com/AGluttonForPunishment/
Kleinbart Posted August 12, 2022 Author Posted August 12, 2022 yeah, tested and it works ... Thanks a lot Kanelbolle
Recommended Posts