Vitus
Resource contributor
- Messages
- 1,480
- Country

Hello again,
I modeled a fire extinguisher for my aircraft and added some nice animations. Unfortunately, it refuses to extinguish any fire. It should work like this:
1. Choose the engine with the lever on the left
2. Pull the trigger
3. land ASAP.
All the animations work - and it seems like all the variables are set correctly as well. I modified my debug gauge to review the status of the fire extinguisher - marked with the red circle:
The value shown under "fire bottle status" is the value of (A:FIRE BOTTLE DISCHARGED:1,bool) and "fire bottle switch" refers to (A:FIRE BOTTLE SWITCH:1,bool).
Here is the callback code for the trigger:
The inner ifs are actually executed - you can see that L:FIRE HANDLE is true and the animation is carried out. But the key event doesn't do anything an my plane keeps burning and burning and burning...
I hope you have an idea!
Regards
Vitus
edit: I think I have to mention that it is FSX code ;-)
I modeled a fire extinguisher for my aircraft and added some nice animations. Unfortunately, it refuses to extinguish any fire. It should work like this:
1. Choose the engine with the lever on the left
2. Pull the trigger
3. land ASAP.
All the animations work - and it seems like all the variables are set correctly as well. I modified my debug gauge to review the status of the fire extinguisher - marked with the red circle:
The value shown under "fire bottle status" is the value of (A:FIRE BOTTLE DISCHARGED:1,bool) and "fire bottle switch" refers to (A:FIRE BOTTLE SWITCH:1,bool).
Here is the callback code for the trigger:
Code:
<CallbackCode>
(L:FIRE HANDLE,bool) 0 ==
if{
(L:FIRE ENGINE SELECTOR, enum) 1 ==
if{
1 (>L:FIRE HANDLE,bool)
11 (>K:EXTINGUISH_ENGINE_FIRE)
quit
}
(L:FIRE ENGINE SELECTOR, enum) 2 ==
if{
1 (>L:FIRE HANDLE,bool)
12 (>K:EXTINGUISH_ENGINE_FIRE)
quit
}
}
els{
0 (>L:FIRE HANDLE,bool)
}
</CallbackCode>
The inner ifs are actually executed - you can see that L:FIRE HANDLE is true and the animation is carried out. But the key event doesn't do anything an my plane keeps burning and burning and burning...
I hope you have an idea!
Regards
Vitus
edit: I think I have to mention that it is FSX code ;-)
Last edited:



