1 | if (constant == 1) |
2 | { |
3 | if (max_time == -1) |
4 | totaltimer = -10; |
5 | timer++; |
6 | if (timer >= rate) |
7 | { |
8 | if (i_ex(target) && totaltimer < max_time) |
9 | { |
10 | event_user(0); |
11 | timer = 0; |
12 | } |
13 | else |
14 | { |
15 | instance_destroy(); |
16 | } |
17 | } |
18 | totaltimer++; |
19 | } |