Functions are things devices do. This includes starting or stopping actions or conditions, changing player attributes, and customizing gameplay in other ways. For a device function to be triggered, you have to bind it to an event on another device. This is how you use devices to create gameplay.
Compare to event.