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

P3D v4 Showing/Hiding Objects for Pilot-Controlled Lighting

spotlope

FSDevConf team
Messages
346
Country
portugal
I'm in the midst of creating a PCL setup for one of my airports, and I'm a bit confused. Is it possible to trigger the hiding of one object (the "off" state MDL of the runway lights) when another (the "on" state of same) is triggered? If you can only add to a scene using the RadioTX trigger visibility command, that's going to be tricky to work with.
 
I assume your lights have a lit bulb texture?

Hopefully Jeff can help you out here.
 
If I understand correctly, you want to have a off-state MDL loaded per default and an on-state MDL once the PCL condition is met? And when the countdown timer elapses, you want to revert back to the off-state MDL?

If that's the case, then you can define a list of models, with the first one being the off-state default MDL, which will be always loaded when no other "active" state is triggered.

Example code:
Code:
<SimObject Name="RWY Lighting">
  <Placement Lat="47.181663" Lon="7.417267" Alt="0.0#AGL" Hdg="065.73"/>
  <Model SimTitle="12bPilot_SODE_Runway_Lights_OFF">
    <TriggerableVisibility Input="RadioTX" Activation="0;120.900" TimeParam="5;1" Action="turn on,turn off" VisibleOnLoad="Yes"/>          
  </Model>
  <Model SimTitle="12bPilot_SODE_Runway_Lights_HIRL">
    <TriggerableVisibility Input="RadioTX" Activation="5;120.900" TimeParam="5;1" Action="turn on,turn off" VisibleOnLoad="No"/>
  </Model>
</SimObject>

Note that the "fallback" MDL has the "VisibleOnLoad" attribute set to "Yes". Also, the "Activation" attribute is ignored in this case, I just set it to "0;120.900".

With this mechanism, you could even do multiple intensities as well, the model list would then be for example:
  • OFF (Activation="0;120.900" VisibleOnLoad="Yes")
  • Low (Activation="3;120.900" VisibleOnLoad="No")
  • Med (Activation="5;120.900" VisibleOnLoad="No")
  • High (Activation="7;120.900" VisibleOnLoad="No")
 
If I understand correctly, you want to have a off-state MDL loaded per default and an on-state MDL once the PCL condition is met? And when the countdown timer elapses, you want to revert back to the off-state MDL?
...
That's cool! Can you add the example to the documentation?
 
Thanks, Jeffrey. I thought that was how it was supposed to work, but for some reason when I was testing yesterday I couldn't get the models to disappear on the trigger. Naturally, now that I've asked it's working fine. ;-)
 
Back
Top