Main Connecting Starting



Building: Liquids and Fountains

Liquids

Firstly, see fluids in consumables for some background.

Right. There are several things you can do with liquids. Empty a container with them, fill a container from another container, and drink from a container.

Containers capable of holding liquids must have volume set on them (number of mls), and the WaterTight flag (now you see where the empty drinks requirement comes from). You'll also want to add the Container flag, if you want them to be useful.

The initial contents of a container are kept in the fill array. Upon reset, a special fluid object is created in the container from the fill array. Don't try and create this object yourself!

Fountains

There can be fountains. You can drink and fill an unlimited amount of liquid from these. Set 'fount' on the fountain to the substance it contains.