Jump to content

Kleinbart

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by Kleinbart

  1. 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')
  2. Hi folks, I am building a multiplayer mission. In this context I need to know the unit name of my own aircraft. The function must have the correct unitname depending on the player who calls the function. I have done it with: Unit.getByName(Unit.getPlayerName()) but of course this does not work. Does anyone have a solution? Thanks.
  3. That's exactly wath I was looking for. Thanks a lot guys
  4. Hi guys I am looking for a way to turn the smokewinder on and off on an ai aircraft with LUA script. Something like this: Unit.getByName('name'):setSmokewinderOn() Unit.getByName('name'):setSmokewinderOff() Does anyone know a way? In the advanced waypoint actions under execute command this is possible. However, this is not sufficient for my application. Thanks for help.
×
×
  • Create New...