Write data variables into created ia aircraft not working
joaogn opened this issue · comments
When I try setDataOnSimObject into create iaAircraft nothing happened.
To try it I created an example on my fork.
- Open the simulator(msfs), put the aircraft preferred C152 into ground into some airport.
- Case you aren't using msfs, need change the containerTitle for the aircraft into your simulator.
- Run the script
npx ts-node samples/typescript/iaAircraftWriteSimulationVariables.ts
- Press Y and slew an aircraft to the side to see both aircraft.
BONUS:
- I tried to slew the aircraft by simconnect and didn't have success the code is commented too.
- If I try to set the aiAircraft object and user object at the same time I have an exception 2.
Was my mistake. to change lights should be by events.