- Messages
- 42
- Country

Hi
I am currently trying to get a object to show when a weight is put in to a station on the aircraft.
So for instance I type 188 pounds into station 1 in the payload manager it shows a object, then I type 0 pounds in the same station and the object disappears. I know this is done through the modeldef.xml but just cant get it to work? This is the code i have tried but it didn't work any ideas where I am going wrong
Many Thanks
Scott
I am currently trying to get a object to show when a weight is put in to a station on the aircraft.
So for instance I type 188 pounds into station 1 in the payload manager it shows a object, then I type 0 pounds in the same station and the object disappears. I know this is done through the modeldef.xml but just cant get it to work? This is the code i have tried but it didn't work any ideas where I am going wrong
Code:
<part>
<name>AIM-9X_STA1</name>
<visible_in_range>
<parameter>
<code>
(A:PAYLOAD STATION WEIGHT:4,pounds) 187.5 > (A:PAYLOAD STATION WEIGHT:4,pounds) 188.5 < &&
if{ 0 } els{ 1 } }
</code>
</parameter>
<minvalue>1</minvalue>
</visible_in_range>
</part>
Many Thanks
Scott




