1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
on:use {
	local "$id", "$angle";
	$id=curentid();
	if($angle==0) {
		timer "object", $id, 100, 19, "open_door";
	}elseif($angle==19) {
		timer "object", $id, 100, 19, "close_door";
	}
}
on:open_door {
	$angle++;
	if($angle==1) {
		model "gfx\[dateiname_modell 2]";
	}elseif($angle==2) {
		model "gfx\[dateiname_modell 3]";
	}elseif($angle==3) {
		model "gfx\[dateiname_modell 4]";
	}elseif($angle==4) {
		model "gfx\[dateiname_modell 5]";
	}elseif($angle==5) {
		model "gfx\[dateiname_modell 6]";
	}elseif($angle==6) {
		model "gfx\[dateiname_modell 7]";
	}elseif($angle==7) {
		model "gfx\[dateiname_modell 8]";
	}elseif($angle==8) {
		model "gfx\[dateiname_modell 9]";
	}elseif($angle==9) {
		model "gfx\[dateiname_modell 10]";
	}elseif($angle==10) {
		model "gfx\[dateiname_modell 11]";
	}elseif($angle==11) {
		model "gfx\[dateiname_modell 12]";
	}elseif($angle==12) {
		model "gfx\[dateiname_modell 13]";
	}elseif($angle==13) {
		model "gfx\[dateiname_modell 14]";
	}elseif($angle==14) {
		model "gfx\[dateiname_modell 15]";
	}elseif($angle==15) {
		model "gfx\[dateiname_modell 16]";
	}elseif($angle==16) {
		model "gfx\[dateiname_modell 17]";
	}elseif($angle==17) {
		model "gfx\[dateiname_modell 18]";
	}elseif($angle==18) {
		model "gfx\[dateiname_modell 19]";
	}elseif($angle==19) {
		model "gfx\[dateiname_modell 20]";
	}
}
on:close_door {
	$angle--;
	if($angle==18) {
		model "gfx\[dateiname_modell 19]";
	}elseif($angle==17) {
		model "gfx\[dateiname_modell 18]";
	}elseif($angle==16) {
		model "gfx\[dateiname_modell 17]";
	}elseif($angle==15) {
		model "gfx\[dateiname_modell 16]";
	}elseif($angle==14) {
		model "gfx\[dateiname_modell 15]";
	}elseif($angle==13) {
		model "gfx\[dateiname_modell 14]";
	}elseif($angle==12) {
		model "gfx\[dateiname_modell 13]";
	}elseif($angle==11) {
		model "gfx\[dateiname_modell 12]";
	}elseif($angle==10) {
		model "gfx\[dateiname_modell 11]";
	}elseif($angle==9) {
		model "gfx\[dateiname_modell 10]";
	}elseif($angle==8) {
		model "gfx\[dateiname_modell 9]";
	}elseif($angle==7) {
		model "gfx\[dateiname_modell 8]";
	}elseif($angle==6) {
		model "gfx\[dateiname_modell 7]";
	}elseif($angle==5) {
		model "gfx\[dateiname_modell 6]";
	}elseif($angle==4) {
		model "gfx\[dateiname_modell 5]";
	}elseif($angle==3) {
		model "gfx\[dateiname_modell 4]";
	}elseif($angle==2) {
		model "gfx\[dateiname_modell 3]";
	}elseif($angle==1) {
		model "gfx\[dateiname_modell 2]";
	}elseif($angle==0) {
		model "gfx\[dateiname_modell 1]";
	}
}