Pyropenguins
New Member
- Reaction score
- 4
Trigger:
- Next
- Events
- Conditions
- Actions
- Set BlockCheck = False
- Unit Group - Pick every unit in Chain and do (Actions)
- Loop - Actions
- Set PickedPoint = (Position of (Picked unit))
- Set BigCheck = (Units owned by (Owner of (Triggering unit)) matching ((((Matching unit) is A structure) Equal to True) and ((((Matching unit) is in Chain) Equal to False) and ((Distance between PickedPoint and MatchPoint)) Less than 182.00))))
- Unit Group - Pick every unit in BigCheck and do (Actions)
- Loop - Actions
- Unit Group - Add (Picked unit) to Chain
- Custom script: call DestroyGroup (udg_BigCheck)
- Custom script: call RemoveLocation (udg_PickedPoint)
- Set BlockCheck = True
- Loop - Actions
- Loop - Actions
- If (BlockCheck Equal to True) then do (Trigger - Run (This trigger) (checking conditions)) else do (Trigger - Run Last <gen> (checking conditions))
- Events
I think the leak is the position of matching unit. The problem is: if i do Set MatchPoint = (Position of (Matching Unit)) like this
Trigger:
- Next
- Actions
- Set BlockCheck = False
- Unit Group - Pick every unit in Chain and do (Actions)
- Loop - Actions
- Set PickedPoint = (Position of (Picked unit))
- Set MatchPoint = (Position of (Matching unit))
- Set BigCheck = (Units owned by (Owner of (Triggering unit)) matching ((((Matching unit) is A structure) Equal to True) and ((((Matching unit) is in Chain) Equal to False) and ((Distance between PickedPoint and (Position of (Matching unit))) Less than 182.00)
- Loop - Actions
- Actions
the trigger wont work at all:banghead::banghead::banghead::banghead:
Its gettin frustrating so i was wondering if anyone would help me out.