• 🏆 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!

[Trigger] help pls group trigger

Status
Not open for further replies.
Level 7
Joined
Nov 10, 2012
Messages
229
223510-albums6007-picture64186.jpg
[/IMG]

pls help fix this
 
Level 7
Joined
Nov 10, 2012
Messages
229
yeah that what i am asking on how to fix can you make a fixed triggers basing on my trigger...that what ive lear in tuturial after all ive finish my map i discover that this triggers are leaking....i have lots of group trigger like that so pls have to upload my map soon but i cant fix the leaks yet,,,,,,any one help...
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
http://www.hiveworkshop.com/forums/triggers-scripts-269/things-leak-35124/

Create a point variable, name it loc or something. Create a unit group variable, name it grp or whatever you want.

Set loc = Center of region
Create 3 swordsman at loc
Create 2 riflemen at loc
Custom script: call RemoveLocation(udg_loc)
set loc = center of castle
set grp = units in region
Order grp to attack loc
Custom script: call RemoveLocation(udg_loc)
Custom script: call DestroyGroup(udg_grp)
 
Level 7
Joined
Nov 10, 2012
Messages
229
so i will do this ??custom script: call RemoveLocation(Udg_point)
custom script: call DestroyGroup(Udg_group)


because i used the variable group for my group and point on location variable.. is that what you mean maker...
 
Status
Not open for further replies.
Top