Skippy
Active Member
- Reaction score
- 39
Hi there,
I had a simple trigger:
But this trigger causes memory leaks. So I changed it into:
and think it is ok now. However, it works only once, not periodicaly every 1 second. WHY????
I had a simple trigger:
Trigger:
- Normal
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- Actions
- Player Group - Pick every player in (All players) and do (Actions)
- Loop - Actions
- Player - Add 1 to (Picked player) Current gold
- Loop - Actions
- Player Group - Pick every player in (All players) and do (Actions)
- Events
But this trigger causes memory leaks. So I changed it into:
Trigger:
- Normal
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- Actions
- Set Temp_Player_Group = (All players)
- Player Group - Pick every player in Temp_Player_Group and do (Actions)
- Loop - Actions
- Player - Add 1 to (Picked player) Current gold
- Loop - Actions
- Custom script: call DestroyForce( udg_Temp_Player_Group)
- Events
and think it is ok now. However, it works only once, not periodicaly every 1 second. WHY????