At first I used alterobject but they kept sinking underground (and underwater). So I tried to get the coordinates but it did the same thing and I figure I'm doing it all wrong. Suggestions anyone?

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
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
### Stone Bridge (Open)
id=307
name=Stone Bridge (Open)
group=building
icon=gfx\icons\icon_bridge.bmp
model=gfx\bridge_open.b3d
autofade=1000
health=20000
mat=stone
behaviour=aligntowater
col=3
script=start
on:use {
local $x,$y,$z;
$x=getx("self");
$z=getz("self");
$y=gety("self");
$id=create("object",308,$x,$y,$z);
free "self";
play "vehicle_move.wav";
}
script=end
### Stone Bridge (Closed)
id=308
name=Stone Bridge (Closed)
group=building
icon=gfx\icons\icon_bridge.bmp
model=gfx\bridge_closed.b3d
autofade=1000
health=20000
mat=stone
behaviour=aligntowater
col=3
script=start
on:use {
local $x,$y,$z;
$x=getx("self");
$z=getz("self");
$y=gety("self");
$id=create("object",307,$x,$y,$z);
free "self";
play "vehicle_move.wav";
}
script=end