• 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.

FSX About L:Vars

Messages
371
Country
france
Hello,

I have two questions about L:Vars

In first, I would like to know if there is a limit to the number of L:Vars in a set of gauges of an aircraft ?

In second : I would like to know if it is possible to create a array with L:Vars with the use of an index for exemple ?

Is -it possible to have (L:my_Var:1, number) or better, use a L:Var to create the index, for example (L:my_Var:L:My_index, number) ?

Thank you for your answer

Francois from France
 
Unfortunately FSX XML does not support arrays....Aside from the A vars.
 
Answering your questions:

1) For practical purposes you won't reach any limit in the number of LVars than can be used in a gaugeset.

2) It is possible to write (L:my_Var:1, number) but not (L:my_Var:L:My_index, number), which means you can't manage standard Lvars in array sets. To overcome this limitations, you have two choices:

-Use a group of macros to imitate a pseudoindexing system, which is indeed complex, or

-Install the XMLVars module, then you will be able to manage normal arrays of local-type variables. See: http://www.fsdeveloper.com/forum/showthread.php?t=238864

Tom
 
You know what would be cool is to have automatic manned gun turrets and not have to worry about them.

For instance....

You could have a switch on the dash or an automatic switch that uses speed and altitude, and this activates some 'automatics'.

Example. Have one turret that has 'two' appearences. When one is 'active' it appears, the other disappears that is 'still'. Then use a timer that counts off a minute and then moves around, points at the sky, looks right, returns to zero position or an off position, etc. Waits for timer again for 20 seconds this time... does its thing.. then 4 min's later, again, does its thing, maybe a different pattern this time.

Then do the same thing for the other turrets, but this time, change things around; angles, timing, etc. This way, as your pilot is flying the plane, the turrets are all looking around on their own, as though a crew were on board doing it.... Sort of like AI turrets.

When you land, they are all automatically stored back into position for landing.

:D

Bill
 
The A2A Accu-Sim B-17G has automated turrets with crew that 'look around'
as the turrets train.
One must switch them 'on' or 'off' manually but once on they scan the
skies for bad guys.

Paul
 
Back
Top