• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Need Help Fixing Leaks

Status
Not open for further replies.
Level 17
Joined
Nov 11, 2010
Messages
1,974
219x8h3.jpg


The problem I'm having with this basic trigger is that whenever more than one hero enters the region, I end up having more than one boss.
Any idea how I can fix this? Sorry I am just learning about leaks ><
 

Bribe

Code Moderator
Level 50
Joined
Sep 26, 2009
Messages
9,464
Turn off the trigger before the wait ;)

Also, use Special Effect - Destroy LastCreated Special Effect right after you create the infernal. You do not need to destroy that sound (in fact, it can cause problems if you do)

Center of Region 009 leaks. Use:

  • Set TempPt = Center of Region 009
  • Unit - Create...
  • Custom script: call RemoveLocation(udg_TempPt)
 
Level 4
Joined
Mar 24, 2008
Messages
87
You should remove location leak too, like this :
Creat a variable point (for example PointPop)
Set PointPop = Center of Region 009
Here do whatever you need on this point (special effect & creating boss)
Then set a custom script : call RemoveLocation(udg_PointPop)

And Bribe is true, you should Destroy the special effect, and not to destroy the sound (it makes sometimes the game crash).
 
Level 20
Joined
Jul 6, 2009
Messages
1,885
Also instead of posting picture of your trigger,use trigger tags.
When you're in trigger editor,click on trigger you want to copy then right click on trigger's name on the right side (above Event/Condition/Action) and click Copy as text. Then paste the text in
JASS:
[trigger][/trigger]
tags.
 
Status
Not open for further replies.
Top