| 06-08-2006, 02:09 AM | #1 |
Everytime if I try to create a Local Trigger in a function(normal function), registering certain events and executing certain actions, the local trigger I made seems to be trippled.... Like, it does register the event, and it does do the added action, just 3 times in a row, like if it was looping! Why? |
| 06-08-2006, 02:17 AM | #2 |
Post your code, unless you just want us to make random guesses ><. |
| 06-08-2006, 09:27 AM | #3 | |
Quote:
JASS:call DisableTrigger( GetTriggeringTrigger( ) ) |
| 06-08-2006, 11:19 AM | #4 |
no, its definately something wrong with your code. Dont make these kinds of solutions to bugs in your code. Fix them the proper way instead. |
| 06-08-2006, 11:41 AM | #5 |
@StockBreak Wow, thank you dude...!! BTW, You can always enable the trigger afterwards again :>>, if you want to reuse it! |
| 06-08-2006, 11:50 AM | #6 |
No no no that's just wrong, please tell me you are destroying the darn trigger ? If you create a trigger you have to destroy it once you no longer need it. |
| 06-08-2006, 11:58 AM | #7 |
Yes, the trigger must be destroyed at the end (if you don't need it again, of course), but in order to prevent the "triple message" on the screen I found that disabling it at the beginning of the code works well. |
| 06-08-2006, 01:01 PM | #8 |
That most likely happens because the trigger is triggering itself in some way. |
| 06-08-2006, 01:12 PM | #9 | |
Quote:
|
