multiple unit destroyed triggers, not all always fire?
Posted: Sat Sep 01, 2018 4:24 pm
For a single side I have multiple unit destroyed triggers.
- any unit destroyed
- ship destroyed trigger
- ac destroyed trigger
- another any unit destroyed trigger
All are set for one side - blue.
I am finding that sometimes one of them won't fire -so say a plane is destroyed, 3 triggers should be activated, but only 1 or 2 will be. Other times all 3 will be.
Still trying to sort out what is going on, no save to share.
Is it bad form to have that many triggers? I could just create 4 - one for each main type - ship/sub/ac/facility and then reuse them, there would only ever be one trigger firing so maybe it would be more bulletproof?
Do you just make new triggers willy nilly and it works fine?
I have lots of print statements in the various events and monitor the luahistory log so I can tell whether they are doing something or not - well, the action part really.
I'm thinking some of the events have fairly long lua scripts to run, maybe that is interrupting the next trigger from firing?
- any unit destroyed
- ship destroyed trigger
- ac destroyed trigger
- another any unit destroyed trigger
All are set for one side - blue.
I am finding that sometimes one of them won't fire -so say a plane is destroyed, 3 triggers should be activated, but only 1 or 2 will be. Other times all 3 will be.
Still trying to sort out what is going on, no save to share.
Is it bad form to have that many triggers? I could just create 4 - one for each main type - ship/sub/ac/facility and then reuse them, there would only ever be one trigger firing so maybe it would be more bulletproof?
Do you just make new triggers willy nilly and it works fine?
I have lots of print statements in the various events and monitor the luahistory log so I can tell whether they are doing something or not - well, the action part really.
I'm thinking some of the events have fairly long lua scripts to run, maybe that is interrupting the next trigger from firing?