Currently, my script file goes:
building1 setpos getpos building2
deletevehicle building2
building1 setpos [(GetPos this select 0), (GetPos this select 1), 5]
exit
The first two lines work fine, but the building that is put in its place is under the ground, with only its roof showing.
When I tried putting the line in a trigger and activating it, the building was transported to an area on the other side of the map.