function attach1(startedresource)
if startedresource == getThisResource() then
A1 = createVehicle ( ID, X, Y, Z, rotX, rotY, rotZ )
B2 = createObject ( ID, X, Y, Z, rotX, rotY, rotZ )
C3 = attachElements ( B2, A1, 0, 0, 0 )
D4 = createObject ( ID, X, Y, Z, rotX, rotY, rotZ )
attachElements ( D4, C3, 0, 0, 0 )
end
end