# Airport Services Examples This page contains examples to help understand the `Services.xml` [file structure](airport-services-xml-properties/), a Service [script file](service-and-idleworker-xml-properties/), or an IdleWorker [script file](service-and-idleworker-xml-properties/). It also gives some details on how the Services and IdleWorkers are actually created or not, based on options and parameters.     ### Example Of The `Services.xml` File This example is a complete valid `Services.xml` file, though with only one `` and fewer `` and IdleWorker `` than usual: ``` xml ``` It is important to understand that Script files mentioned in `Services.xml` **can be part of other packages**, including the default Microsoft Flight Simulator 2024 packages. Thus, here is a list of the scripts you can use, with their associated `AIType`:   {{< table-wrapper >}} | Category | Filename | `AIType` | |-----------------|----------|-------------------| | Parking Service | Shared | `BaggageLoader` | | Parking Service | Shared | `BoardingRamp` | | Parking Service | Shared | `CateringTruck` | | Parking Service | Shared | `GroundPowerUnit` | | Parking Service | Shared | `Marshaller` | | Parking Service | Shared | `PushBack` | | Parking Service | Shared | `SmallPushBack` | | Airport Service | Shared | `FuelTruck` | | IdleWorker | Shared | `IdleWorker` | | IdleWorker | Shared | `IdleWorker` | {{< /table-wrapper >}}   We recommend using a **unique prefix** to your script files, in order to avoid confusion with other packages from other companies.     ### Example Of The Spawning Parameters The following example, with associated screenshot from Microsoft Flight Simulator 2024, illustrates the meaning of the various spawning parameters. In the example they are used for IdleWorkers only, but the behavior is the same for Services. ``` xml ``` {{< image-center src="images/5_Content_Config/Environment/Living_World/idleworker_spawning.png" alt="Example of where IdleWorkers will spawn" >}} The numbers in the screenshot above correspond to the number in the `*.xml` example. Moreover, both the numbers and the generated cones are placed in front of the IdleWorker, to help visualize their orientation. The blue circle represents the parking spot, with its heading aligned with the aircraft heading (as should be the case if the aircraft is properly parked). In this example, the radius of the parking is 10m. If the parking was larger, both examples 6 and 7 would be farther away from the circle line, while examples 4 and 5 would stay at exactly 5m from this circle line. Finally, note that in normal conditions, an aircraft whose wingspan is larger than the diameter of a parking should never park in said parking.     ### Example Of Services Script File The following example is a simple script file for a `GroundPowerUnit` service: {{< callout context="note" title="NOTE" icon="outline/bulb" >}} The second ``, creating a pilot for a `GroundPowerUnit` vehicle, is not necessary to make a minimal working example and is included to help illustrate the process. {{< /callout >}} ``` xml GroundPowerUnit True True GroundPowerUnit Pilot of GroundPowerUnit True GroundVehicle_Pilot True Pilot ```     ### Example Of IdleWorker Script File The following example would be for an `IdleWorker` rather than a service: ``` xml FreeFlight Worker.xml IdleWorker Start Idle worker True True IdleWorker1 True True IdleWorker False True 0 False 10.000,0.000,0.000,0.000 True Waypoint 1 1.000 0.000,0.000,10.000,0.000 True Waypoint 2 1.000 True Waypoint 3 1.000 {FC6152CE-F1CE-4651-9703-54DE41BE5354} 0.000,0.000,2.000,0.000 ```