![]() |
|
|||||||
| Register | Wiki | Downloads | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
| Modeling Use this forum for all your modelling related discussions |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Needed XML code script for an AI canopy cover
Hi friends,
I'm trying to place a canopy cover on my freeware FS2004 AI aircraft model that I developed in FSDS 3.5.1 but I only wish to have the canvas cover over the canopy glass at night. I have tried several xml codes but nothing so far seems to work for me, can any of the xml guru's that understand this stuff help me out please. Can anybody see where this script may be incorrect! Thanks, <part> <name>YOURPARTNAME</name> <visible_in_range> <parameter> <code>(A:TIME OF DAY, enum)</code> </parameter> <minvalue>2</minvalue> <maxvalue>3</maxvalue> </visible_in_range> </part> |
|
#2
|
||||
|
||||
|
you need to specify one of the 3 choices.
General time of day: 1 = Day 2 = Dusk/Dawn 3 = Night <code>(A:TIME OF DAY:3, enum)</code> or <code> 3 (A:TIME OF DAY, enum)</code> Try this
__________________
![]() http://flysimware.com/website.... ![]() https://www.facebook.com/groups/232386743438866?ap=1 |
|
#3
|
|||
|
|||
|
Actually his code is correct. You do not put the value as an index (:3). What's probably wrong is it should be E:, not A:. It is an Environment variable, not an Aircraft variable.
Hope this helps, |
|
#4
|
|||
|
|||
|
Code:
<part>
<name>YOURPARTNAME</name>
<visible_in_range>
<parameter>
<code>(E:TIME OF DAY, enum)</code>
</parameter>
<minvalue>2</minvalue>
<maxvalue>3</maxvalue>
</visible_in_range>
</part>
__________________
Bill Leaming 3d Modeler Max/GMax C & XML Gauge Programmer Eaglesoft Development Group http://eaglesoftdg.com Intel® Core™ i7-3770k 4.2GHz - Crucial 16GB DDR3 - Dual Radeon HD770 1GB DDR5 (Crossfire) - Eco II Watercooling - Win7 64bit Intel® Core™ i7-2600k 3.4GHz - Crucial 4GB DDR3 - NVIDIA GeForce GTX550Ti 1GB - Win7 64bit Intel® Core™ i7-860 2.8GHz - Crucial 8GB DDR3 - NVIDIA GeForce GTS240 1GB - Win8 64bit NOTE: Unless explicitly stated otherwise, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined...
|
|
#5
|
|||
|
|||
|
Thanks guy's for the reply and confirmations, the "e" made all the difference and is working a treat. A bunch of new freeware AI models will be using this code to delight fellow simmers.
Cheer's, Mark |
|
#6
|
|||
|
|||
|
Just noticed this while looking for ideas about canopies masking out aircraft parts for no good reason.
I know this is a late response, but is a canopy by time of day a good idea? What if the AI flight plan gets the aircraft airborne at a time when the canopy is still there? I'm still trying to get the crew to vanish when the AI is inactive, and surely the canopy would be better conforming to that idea instead. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [FSXA] XML Code Help needed | mike november | Gauges | 8 | 17 Feb 2012 18:27 |
| [FS2004] Canopy transparency and prop0_blurred rotation | John Young | Modeling | 10 | 25 Jan 2011 15:25 |
| Help needed - FSX Gamepack GUID script problem | OryxSim | GMax and 3DS Max | 1 | 25 Jul 2010 06:53 |
| Gauge code question | lionheart | Gauges | 1 | 12 Aug 2009 14:58 |
| ILS Altitude | Alan McGaughey | Airport Design Editor | 18 | 06 Aug 2008 04:49 |