- Messages
- 1,468
- Country

Vololiberista, I just tried your code with the engine temp variation, reduced to 15 seconds, and it didnt work. Did I do something wrong?
Code,
Code:<!-- Engine One --> <Element> <Select> <Value> (L:RandomNumber,number) 0.115 < if{ (L:eng1_stop,number) @GetElapsed(time1,seconds) + (A:TURB ENG ITT:1, celsius) 400 > * d (>L:eng1_stop,number) 15 > if{ (>K:TOGGLE_ENGINE1_FAILURE) 0 (>L:eng1_stop,number) 1 (>L:restart1,bool) } @SetElapsed(time1,seconds) } </Value> </Select> </Element> <Element> <Select> <Value> (L:RandomNumber,number) 0.100 < if{ (A:TURB ENG ITT:1, celsius) 390 < (L:restart1,bool) 1 == and if{ 0 (>L:eng1_stop,number) 0 (>L:restart1,bool) (>K:TOGGLE_ENGINE1_FAILURE) } } </Value> </Select> </Element>
* This would mean the seconds that it takes to overheat? ................ d (>L:eng1_stop,number) 15 > (15 being the seconds)
EDIT: I tried this code again, stock but changed high RPM limit to 95% (as my engines cannot do over 100) and again this didnt work.
So now that you are getting proficient at timers and triggering events, can you translate this for us back here in this dimension? Can you disect for instance, and explain in detail, how this cool code works?
I think your turbine ITT vars are not quite correct. You have (A:TURB ENG ITT:1, celsius) whereas I have (A:TURB ENG1 ITT, celsius)


