1 | if (myinteract == 1 && glowtimer <= 0) |
2 | { |
3 | if (snd_isplaying(snd_spearappear) == 0) |
4 | snd_play(snd_spearappear); |
5 | myinteract = 0; |
6 | glowtimer = 30; |
7 | glowup = 1; |
8 | } |
9 | glowtimer -= 1; |
10 | if (glowtimer <= 0) |
11 | glowup = 0; |
12 | if (glowup == 1) |
13 | { |
14 | if (obj_darknesspuzzle.glowamt > 0) |
15 | obj_darknesspuzzle.glowamt -= 0.07; |
16 | } |
17 | if (myinteract == 1) |
18 | myinteract = 0; |