slayer
New Member
- Reaction score
- 2
Hello!
I am currently trying to get rid of and remove leaks from my map. This trigger does not work after removing the leak from it, why?
Improved one:
Alchemist
Events
Unit - A unit enters HEROAlchemist <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Hero Select
Actions
Set L = (Center of HeroStartPoint <gen>)
Unit - Create 1 Alchemist for (Triggering player) at L facing Default building facing degrees
Unit - Remove (Triggering unit) from the game
Custom script: call RemoveLocation(udg_L)
Although, when I last checked with leak checker, it still says "Location variable has not been removed" What seems to be the problem there? (btw, thanks for leak checker Im_On_56k :thup: )
Original one with leak that does work:
Alchemist
Events
Unit - A unit enters HEROAlchemist <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Hero Select
Actions
Unit - Create 1 Alchemist for (Triggering player) at L facing Default building facing degrees
Unit - Remove (Triggering unit) from the game
I am currently trying to get rid of and remove leaks from my map. This trigger does not work after removing the leak from it, why?
Improved one:
Alchemist
Events
Unit - A unit enters HEROAlchemist <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Hero Select
Actions
Set L = (Center of HeroStartPoint <gen>)
Unit - Create 1 Alchemist for (Triggering player) at L facing Default building facing degrees
Unit - Remove (Triggering unit) from the game
Custom script: call RemoveLocation(udg_L)
Although, when I last checked with leak checker, it still says "Location variable has not been removed" What seems to be the problem there? (btw, thanks for leak checker Im_On_56k :thup: )
Original one with leak that does work:
Alchemist
Events
Unit - A unit enters HEROAlchemist <gen>
Conditions
(Unit-type of (Triggering unit)) Equal to Hero Select
Actions
Unit - Create 1 Alchemist for (Triggering player) at L facing Default building facing degrees
Unit - Remove (Triggering unit) from the game