• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Eyepoint angle in XML?

JB3DG

Resource contributor
Messages
1,325
Country
southafrica
Was going through the SDK and ran across this variable

STRUCT EYEPOINT DYNAMIC ANGLE

Units: SIMCONNECT_DATA_XYZ structure, radians

Now is there any way to access this in XML?
 
What if there is a command code that is named exactly this with underscores, like how Aces did with some other code work?

(>K:STRUCT_EYEPOINT_DYNAMIC_ANGLE, radian) 30


It might not work, but some of the strings I noticed in FS9 work this way, with reading coming from the command string but without the underscores in the script.
 
Not tried it, but I wonder if it drives that idiotic DynamicHeadMovement?

Roy
 
No as far as I can tell it is related to where you are looking ie typically driven by the hat switch on your joystick. And it is a A var not a Key event although i think it has a separate key event to drive it. The problem is it is not a single value.

It is a XYZ ie you can have in radians 1 X, 1 Y, 1 Z.

Any ideas on how to deal with it? If I can get it in XML then....I see several new possibilities.... But I have to be able to separate it into separate variables so that I can get the X on its own, the Y on its own etc.
 
What if there is a command code that is named exactly this with underscores, like how Aces did with some other code work?

(>K:STRUCT_EYEPOINT_DYNAMIC_ANGLE, radian) 30

If it ain't in the SDK, you can't just make one up... :eek:
 
Just to set things straight though as this is starting to deviate from my purposes....I want to READ from this var in XML and be able to read each individual value for the XYZ.

So....what do i do?
 
Just to set things straight though as this is starting to deviate from my purposes....I want to READ from this var in XML and be able to read each individual value for the XYZ.

So....what do i do?

Having looked at the question with a few days of rest and fresh eyes again, the answer is no. XML's A:vars will only return a FLOAT64 value, which obviously cannot contain a STRUCT at all.

It would appear that anything in the token list that has SIMCONNECT_DATA as the only description is only accessible via SimConnect. :o

You could of course code a SimConnect module and sent the X Y Z components into custom XML (L:vars,enum)...
 
Back
Top