Jump to content

Recommended Posts

Posted

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.

Posted (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 by Kanelbolle
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...