24 |
|
|
25 |
function sw1() |
function sw1() |
26 |
if (swc == 0) then |
if (swc == 0) then |
27 |
set_attribs(enigma.GetNamedObject("bolder01"), {direction=EAST}) |
enigma.SendMessage(enigma.GetNamedObject("bolder01"),"direction",EAST); |
28 |
swc = 1 |
swc = 1 |
29 |
end |
end |
30 |
end |
end |
31 |
|
|
32 |
function sw2() |
function sw2() |
33 |
if (swc == 1) then |
if (swc == 1) then |
34 |
set_attribs(enigma.GetNamedObject("bolder01"), {direction=WEST}) |
enigma.SendMessage(enigma.GetNamedObject("bolder01"),"direction",WEST); |
35 |
swc = 2 |
swc = 2 |
36 |
end |
end |
37 |
end |
end |
38 |
|
|
39 |
function sw3() |
function sw3() |
40 |
if (swc == 2) then |
if (swc == 2) then |
41 |
set_attribs(enigma.GetNamedObject("bolder02"), {direction=EAST}) |
enigma.SendMessage(enigma.GetNamedObject("bolder02"),"direction",EAST); |
42 |
swc = 3 |
swc = 3 |
43 |
end |
end |
44 |
end |
end |
45 |
|
|
46 |
function sw4() |
function sw4() |
47 |
if (swc == 3) then |
if (swc == 3) then |
48 |
set_attribs(enigma.GetNamedObject("bolder02"), {direction=WEST}) |
enigma.SendMessage(enigma.GetNamedObject("bolder02"),"direction",WEST); |
49 |
swc = 4 |
swc = 4 |
50 |
end |
end |
51 |
end |
end |