Summary
Buildings are very common structures in Second Life. The vast majority of a building is usually non-scripted objects. However, some aspects of buildings require scripts. This chapter introduced several recipes that provide commonly used scripts for buildings.
Sometimes water is needed in locations other than the ocean. Second life provides ocean water for any area below a specific altitude. However, to get water at other altitudes, that water must be built. The first recipe in this chapter showed how to build water. The script showed how to make a splash sound when an avatar enters the water. The recipe also showed how to animate the texture and make it appear that the water was flowing.
Doors are a very common part of buildings in Second Life. This chapter presented three recipes for doors. The first door recipe was a simple door that can be opened by any avatar. The second door could only be opened by its owner. The third door could be opened by its owner or any avatar that the owner adds to its access list.
Many buildings in Second Life contain more than one floor. If the building contains more than one floor, a means is required to move between floors. Common scriptless solutions include stairs and ramps. Scripts can be used to implement elevators and teleport pads. This chapter provides recipes for both.
The next chapter will introduce the Second Life particle system. Particles are small objects that can be emitted from a scripted object. Common uses for particles include leaving trails from vehicles, smoke, and allowing jewelry to glisten.




