At what foot intervals does scaffolding have to be tied to a building?

At what foot intervals does scaffolding have to be tied to a building?