![]() |
|
|||||||
| Register | Wiki | Downloads | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
| Gauges Use this forum for all your gauges related discussions |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
|||
|
|||
|
noob xml question
hi,
i want do indicate if a door is open or not. The script should return bool. in a pannel xml file i have found this working code to check the main exit: <Script>(A:CIRCUIT GENERAL PANEL ON, bool) 1 == if{ (A:EXIT OPEN, bool) } els{ 0 }</Script> i am a little confused over that. the "EXIT OPEN" should be a percent value.however, if i try this with an other exit like this <Script>(A:CIRCUIT GENERAL PANEL ON, bool) 1 == if{ (A:EXIT OPEN:1, bool) } els{ 0 }</Script> the script fails. Any ideas?
Last edited by roddi; 30 Dec 2006 at 10:51. |
|
#2
|
|||
|
|||
|
ok, i did it. the simple things are still the best
(A:EXIT OPEN:1, percent) "100.0" < |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Ideas for future versions of ObPlacer XML | arno | ObPlacer and ObPlacer XML | 19 | 05 Oct 2008 12:09 |
| Prblem compileing XML to bgl | sgtjoebear | BGLComp XML, AFCAD, SceneGenX | 4 | 05 Apr 2006 01:54 |
| question on library xml | woody | BGLComp XML, AFCAD, SceneGenX | 3 | 16 Oct 2005 14:26 |
| Autogen XML - More SDK info, or XML implementation of code | flightsimstudios | FS wishlist | 5 | 08 Feb 2005 05:53 |
| ObPlacer XML 0.11 released | arno | ObPlacer and ObPlacer XML | 0 | 31 Dec 2004 11:05 |