- Joined
- Jun 13, 2017
- Messages
- 83
If i want to remove Location or Group leak with custom script i always put it at the end of the trigger but i am not sure if it is right so i made 2 triggers now just to show what i mean.
On this one the removelocation is at the end not in the picked group
On this one it is on the end of the picked group
Same for group leak should i put it at the end of group or like the first one after Remove location of course i am talking about (Call DestroyGroup) not the one i am using above.
On this one the removelocation is at the end not in the picked group
-
Troll Boss 2 Loc
-
Events
- Unit - A unit enters Troll Dungeon Boss Entrance 2 <gen>
-
Conditions
- ((Triggering unit) is A Hero) Equal to True
-
Actions
- Set Dung_TP[1] = (Center of Troll Dungeon Heroes Loc 2 <gen>)
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units in Troll Dungeon Respawn 1 <gen> matching (((Matching unit) belongs to an enemy of Player 12 (Brown)) Equal to True)) and do (Actions)
-
Loop - Actions
- Camera - Apply Dungeon 1 Copy 2 <gen> for (Owner of (Picked unit)) over 0.00 seconds
- Unit - Move (Picked unit) instantly to Dung_TP[1], facing Default building facing degrees
-
Loop - Actions
- Custom script: call RemoveLocation (udg_Dung_TP[1])
-
Events
On this one it is on the end of the picked group
-
Troll Boss 2 Loc
-
Events
- Unit - A unit enters Troll Dungeon Boss Entrance 2 <gen>
-
Conditions
- ((Triggering unit) is A Hero) Equal to True
-
Actions
- Set Dung_TP[1] = (Center of Troll Dungeon Heroes Loc 2 <gen>)
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units in Troll Dungeon Respawn 1 <gen> matching (((Matching unit) belongs to an enemy of Player 12 (Brown)) Equal to True)) and do (Actions)
-
Loop - Actions
- Camera - Apply Dungeon 1 Copy 2 <gen> for (Owner of (Picked unit)) over 0.00 seconds
- Unit - Move (Picked unit) instantly to Dung_TP[1], facing Default building facing degrees
- Custom script: call RemoveLocation (udg_Dung_TP[1])
-
Loop - Actions
-
Events
Same for group leak should i put it at the end of group or like the first one after Remove location of course i am talking about (Call DestroyGroup) not the one i am using above.