Good morning to all,
I dont know if this has been discussed or not but generally wanted to inquire of whether or not it would possible to have the AI airplanes shown with rotating beacon(s)?
Thank-you
John.
<?xml version="1.0"?>
<PropertyList>
<description>pa-28</description>
<author>David Megginson, modified for AI use Brett Harrison</author>
<path>Models/pa-28.ac</path>
<nasal>
<load>
<![CDATA[
aircraft.light.new("/sim/model/pa-28/lighting/beacon", [0.10, 0.90]);
setprop("/sim/model/pa-28/lighting/beacon/enabled", 1)
]]>
</load>
<unload>
</unload>
</nasal>
<animation>
<name>propall</name>
<object-name>prop</object-name>
<object-name>propdisc</object-name>
</animation>
<animation>
<type>select</type>
<object-name>propdisc</object-name>
<condition>
<greater-than>
<property>velocities/true-airspeed-kt</property>
<value>50</value>
</greater-than>
</condition>
</animation>
<animation>
<type>select</type>
<object-name>prop</object-name>
<condition>
<less-than>
<property>velocities/true-airspeed-kt</property>
<value>60</value>
</less-than>
</condition>
</animation>
<animation>
<type>spin</type>
<object-name>propall</object-name>
<property>velocities/true-airspeed-kt</property>
<factor> 90 </factor>
<center>
<x-m> -2.48050</x-m>
<y-m> 0.00000 </y-m>
<z-m> 1.06520 </z-m>
</center>
<axis>
<x> -1.000 </x>
<y> 0.000 </y>
<z> 0.000 </z>
</axis>
</animation>
<!-- Landing Light -->
<animation>
<type>select</type>
<object-name>LandingLightL</object-name>
<object-name>LandingLightR</object-name>
<nopreview/> -->
<condition>
<and>
<greater-than>
<property>/sim/time/sun-angle-rad</property>
<value>1.57</value>
</greater-than>
<greater-than>
<property>velocities/true-airspeed-kt</property>
<value>0</value>
</greater-than>
</and>
</condition>
</animation>
<animation>
<type>flash</type>
<object-name>LandingLightL</object-name>
<center>
<x-m>-0.61229</x-m>
<y-m>-5.01234</y-m>
<z-m> 1.13965</z-m>
</center>
<axis>
<x>-1</x>
<y>0</y>
<z>0</z>
</axis>
<power>8</power>
<factor>6</factor>
<offset>0</offset>
<two-sides type="bool">false</two-sides>
<min>0.5</min>
<max>80</max>
</animation>
<animation>
<type>flash</type>
<object-name>LandingLightR</object-name>
<center>
<x-m>-0.61229</x-m>
<y-m> 4.99278</y-m>
<z-m> 1.13965</z-m>
</center>
<axis>
<x>-1</x>
<y>0</y>
<z>0</z>
</axis>
<power>8</power>
<factor>6</factor>
<offset>-.5</offset>
<two-sides type="bool">false</two-sides>
<min>0.5</min>
<max>80</max>
</animation>
<!-- Red Nav light -->
<animation>
<type>material</type>
<object-name>LeftNav_Light</object-name>
<emission>
<red>1</red>
<green>0.05</green>
<blue>0.05</blue>
</emission>
</animation>
<!-- Green Nav light -->
<animation>
<type>material</type>
<object-name>RightNav_Light</object-name>
<emission>
<red>0.05</red>
<green>1</green>
<blue>0.05</blue>
</emission>
</animation>
<animation>
<type>select</type>
<object-name>LeftNav_Light</object-name>
<object-name>RightNav_Light</object-name>
<condition>
<and>
<greater-than>
<property>/sim/time/sun-angle-rad</property>
<value>1.57</value>
</greater-than>
<greater-than>
<property>velocities/true-airspeed-kt</property>
<value>0</value>
</greater-than>
</and>
</condition>
</animation>
<!-- Red Beacon light -->
<animation>
<type>material</type>
<object-name>BeaconX</object-name>
<emission>
<red>1</red>
<green>0.05</green>
<blue>0.05</blue>
</emission>
</animation>
<animation>
<type>select</type>
<object-name>BeaconX</object-name>
<nopreview/>
<condition>
<and>
<property>/sim/model/pa-28/lighting/beacon/state</property>
<greater-than>
<property>/sim/time/sun-angle-rad</property>
<value>1.57</value>
</greater-than>
<greater-than>
<property>velocities/true-airspeed-kt</property>
<value>0</value>
</greater-than>
</and>
</condition>
</animation>
<BeaconXparams>
<light-near>0.4</light-near>
<light-med>0.8</light-med>
<light-far>10</light-far>
</BeaconXparams>
<animation>
<type>alpha-test</type>
<object-name>BeaconX</object-name>
<alpha-factor>0.001</alpha-factor>
</animation>
<animation>
<type>translate</type>
<object-name>BeaconX</object-name>
<offset-m>4.39</offset-m>
<axis>
<x> 3.95</x>
<y> 0.0</y>
<z> 2.73</z>
</axis>
</animation>
<animation>
<type>billboard</type>
<object-name>BeaconX</object-name>
<spherical type="bool">true</spherical>
</animation>
<animation>
<type>dist-scale</type>
<object-name>BeaconX</object-name>
<interpolation>
<entry>
<ind>0</ind>
<dep alias="/BeaconXparams/light-near"/>
</entry>
<entry>
<ind>500</ind>
<dep alias="/BeaconXparams/light-med"/>
</entry>
<entry>
<ind>16000</ind>
<dep alias="/BeaconXparams/light-far"/>
</entry>
</interpolation>
</animation>
</PropertyList>
wlbragg wrote in Thu Aug 10, 2017 5:54 am:In case anyone is interested I added strobes to the pa-28. I also change it from a two light wingtip landing light configuration to one center landing light.
It's actually pretty cool, you can see it coming at night from a long ways off.
Users browsing this forum: No registered users and 1 guest