I may have expressed myself in a complicated way. In the multiplayer mission there are 10 aircraft which can be selected by the players.
Group1: AircraftPlayer-1
Unit name: AircraftPayer-1-1 to AircraftPayer-1-5
Group2: AircraftPlayer-2
Unitname: AircraftPayer-2-1 to AircraftPayer-2-5
Both groups are in the same coalition.For example, my friend takes Aircraft-2-4 and I take Aircraft-1-2. In the mission, players can query the distance to a specific target. But for that I need to know that my friend is in Aircraft-2-4 and I am in Aircraft-1-2. When my friend retrieves the distance, his is calculated, when I retrieve the distance, mine is calculated.
Therefore I am looking for a query in the form of:
Unit.getByName('CurrentPlayer')