- Joined
- Feb 9, 2007
- Messages
- 56
HI Everybody
I have a little problem with a map of mine. If you play the map with more then two people, it happens very often that somebody gets disconnected...
So I thought I should improve the triggers ect.
And I thought I should remove triggers that just fired once and aren't necessary anymore afterwards.
So I added:
Custome Script: call DestroyTrigger( GetTriggeringTrigger() )
at the end of those triggers.
But now I don't know if it's working or not. So I thought I would test it on a trigger where I could see the result:
Triggername: muradinsound
Event:
-Unit gets attacked
Condition:
-Unit equal to "muradin"
Action:
-Play sound "blabla"
-Custom Script: call DestroyTrigger( gg_trg_muradinsound )
I thought that the last line would remove the trigger completly after it had been fired... So it couldn't fire again.
But actually when the unit (muradin) gets attacked, I get a fatal error...
Maybe I miss understood something with those custom scripts....
Hope you can help me :emote_grin:
Thx in adance
I have a little problem with a map of mine. If you play the map with more then two people, it happens very often that somebody gets disconnected...
So I thought I should improve the triggers ect.
And I thought I should remove triggers that just fired once and aren't necessary anymore afterwards.
So I added:
Custome Script: call DestroyTrigger( GetTriggeringTrigger() )
at the end of those triggers.
But now I don't know if it's working or not. So I thought I would test it on a trigger where I could see the result:
Triggername: muradinsound
Event:
-Unit gets attacked
Condition:
-Unit equal to "muradin"
Action:
-Play sound "blabla"
-Custom Script: call DestroyTrigger( gg_trg_muradinsound )
I thought that the last line would remove the trigger completly after it had been fired... So it couldn't fire again.
But actually when the unit (muradin) gets attacked, I get a fatal error...
Maybe I miss understood something with those custom scripts....
Hope you can help me :emote_grin:
Thx in adance