Carl-Fredrik
New Member
- Reaction score
- 51
Hi everyone, I've made this trigger for my jail.
The idea was that if a unit is in the region, it will become invurnerable.
But I've started to learn things about "leaking" triggers and I thought this might leak very much because it is periodic.
So, will this trigger leak? And if it does, how can I prevent it?
The idea was that if a unit is in the region, it will become invurnerable.
But I've started to learn things about "leaking" triggers and I thought this might leak very much because it is periodic.
So, will this trigger leak? And if it does, how can I prevent it?
Code:
jail1 invurnerable
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units in Jail1 <gen>) and do (Actions)
Loop - Actions
Unit - Make (Picked unit) Invulnerable