Jump to content

MOOSE UNIT:FindByName(dcsUnit:getName()) returns nil


Recommended Posts

Posted

Hi, I have another MOOSE question:

I have a DCS unit object "initUnit", and I need to get the corresponding MOOSE UNIT object.

However, both of the following return nil:

local MooseUnit = UNIT:FindByName(initUnit:getName())
local MooseUnit = UNIT:Find(initUnit)

 

initUnit:getName() returns the unit name as in the mission editor, without a numerical appendix.

Does anyone have any hints as to get from the DCS unit to the MOOSE unit?

  • 3 weeks later...
Posted (edited)

How is "initUnit" being created?

Is "initUnit" the Unit Name or Group name in the Mission Editor?

Edited by Death Merchant

[PC] ASUS X570E - Ryzen 9  5950X - RX 6900 XT - 32GB 3600Mhz

Hornet, A-4E-C, Huey, Ka-50, Mi-8, F-15E, F-14

Join us on Death Dealers PvE server.

  • Recently Browsing   0 members

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