TwinFan / XPMP2

Multiplayer library for X-Plane 11/12 with instancing, TCAS override, and sound
https://twinfan.github.io/XPMP2/
Other
24 stars 16 forks source link

Provide model info via dataRef to 3rd party plugins when having AI control #26

Closed TwinFan closed 3 years ago

TwinFan commented 3 years ago

Current Situation / Problem 3rd party plugins cannot find out which model a rendered plane uses. There is a use case at least for the camera plugin ABC, which asks for a value similar to what LTAPI returns through LTAPIAircraft::getCslModel().

Suggested Solution

Extend the already existing set of shared dataRefs:

Benefits Use cases are probably limited...but at least ABC has what it asks for. It somehow uses it to fine-tune the camera per displayed model.

Additional context Discussed in a support thread in the context of the Remote Client. The solution will be generic for XPMP2, however, ie. for any plugin based on XPMP2.