|
Conditional Display When Using Max
and FS2002/FS2004
|
|
|
After reading a request for information recently in one of the forums, I did some experimenting into how to make an object in an aircraft display only under certain conditions when using Max. The question was "How do I make my pilot disappear when the engine(s) is/are off." There have been discussions on part display depending on altitude or light states at the gMax support forum and this requires some additional lines. At first I started with the aircraft variables used in the past like 50h or 000000050h but with no luck. Then I looked at the code for the props and found what was making the them display at certain times and found they all had this in common. "dict_engineX+2" where X is the number of the engine. So I first tried an IFIN1 statement with the pilot seeming to pop in and out... not what I wanted. Next I tried some reverse logic and low and behold it worked. In the _0.asm file I found the drawing code for the pilot and added a couple of lines like so: |
|
|
|
| Here is how it looks now: | |
![]() |
|
![]() |
|
| Remember, you'd have to edit the _0.asm file after each export. | |
| If you look at the MDL_FORMAT_SDK document there are several "Parameter Dictionary GUIDs". I believe these are the keys to be used now instead of the old local aircraft variable forms. |