- Joined
- May 10, 2014
- Messages
- 41
Hello!
I make a trigger: unit use spell, that creates region with size 300x300 at his position and stores it to variable. (rect)
The event 'unit enters region variable' added to trigger, that kills entering unit.
It works good for the first time.
If spell is used several times - units dying when they enter the ''old'' regions.
It would be cool to delete event from trigger, but that's impossible.
Is there any way to clean region variable?
Or remove (destroy) "old" region from the game before creating new, so units don't die even if they enter?
Or, may be creating and destroying triggers... i never did it before...
Does it slows the game or cause bugs?
If it's not, how to create a trigger? I need JASS or it's possible with custom script and GUI? And how to destroy it?
Thanks for any help!
I make a trigger: unit use spell, that creates region with size 300x300 at his position and stores it to variable. (rect)
The event 'unit enters region variable' added to trigger, that kills entering unit.
It works good for the first time.
If spell is used several times - units dying when they enter the ''old'' regions.
It would be cool to delete event from trigger, but that's impossible.
Is there any way to clean region variable?
Or remove (destroy) "old" region from the game before creating new, so units don't die even if they enter?
Or, may be creating and destroying triggers... i never did it before...
Does it slows the game or cause bugs?
If it's not, how to create a trigger? I need JASS or it's possible with custom script and GUI? And how to destroy it?
Thanks for any help!