- Messages
- 8
- Country

I'm basically after someone to help figure out why my code doesn't work..lol.
The theory is that when then battery bus is off, the needle sits at keyframe 0, but if the battery bus is on, the needle moves according to the SDK variable... here's the code..
<PartInfo>
<Name>needle_fuel_r</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(L:BATT_BUS, bool)
if { (A:FUEL RIGHT QUANTITY, percent) 1 / }
els { 0 }
</Code>
</Parameter>
</Animation>
</PartInfo>
It seems fine in my mind, but for some reason won't work in the sim..
Any help would be greatly appreciated..
David.
The theory is that when then battery bus is off, the needle sits at keyframe 0, but if the battery bus is on, the needle moves according to the SDK variable... here's the code..
<PartInfo>
<Name>needle_fuel_r</Name>
<AnimLength>100</AnimLength>
<Animation>
<Parameter>
<Code>
(L:BATT_BUS, bool)
if { (A:FUEL RIGHT QUANTITY, percent) 1 / }
els { 0 }
</Code>
</Parameter>
</Animation>
</PartInfo>
It seems fine in my mind, but for some reason won't work in the sim..
Any help would be greatly appreciated..
David.


