<TargetSim>

Code
<TargetSim ID="P3Dv3;P3Dv4"/>

Or when nested in <Model/>:
<TargetSim ID="P3Dv3" SimTitle="12bPilot_MyModelSimtitle_P3Dv3"/>
Attributes
  • ID=”XXX”: Simulator platform ID as string. One of {FSX, FSX-SE, P3Dv2, P3Dv3, P3Dv4}. The ID can be a list of simulator IDs, separated by semi-colons, with no space in between.
  • SimTitle=”XXX”: Model SimTitle as defined in the sim.cfg file. Must correspond exactly to that entry! The SimTitle is only needed when nested within a <Model/> node!
Children
  • NONE
Description

The TargetSim node can defined a specific model to be used for a particular simulator.

There are two ways of using this node:

  1. An entire SimObject that will only load for the specified simulator(s)
  2. A SimObject that should always be loaded, but with sim-specific models
  • Example for case 1, entire SimObject only shown for P3Dv3 and P3Dv4:
<SimObject Name="My exclusive P3D Object">
    <TargetSim ID="P3Dv3;P3Dv4"/>
    <Placement ... />
    <Model ... />
</SimObject>

  • Example for case 2, within a <Model/> node. Note that the “BaseModel” will be loaded for all the other sims, that are not specified explicitly!
<SimObject Name="Specific Models">
    <Placement Lat="47.1827942" Lon="7.4168" Alt="0#AGL" Hdg="000"/>
    <Model SimTitle="12bPilot_BaseModel">
        <TargetSim ID="P3Dv3" SimTitle="12bPilot_SpecialModel_P3Dv3"/>
        <TargetSim ID="P3Dv4" SimTitle="12bPilot_SpecialModel_P3Dv4"/>
        <ConditionalVisibility .../> 
    </Model>
</SimObject>