• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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,243
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