DEPRECATED: Custom Actions pretty much covers this & more now
1. Specify the functions the button should call in the instance. One is specifically for animations so they can be reused for other buttons. Parameters are optional.
2. Use „object > fire click event“ to execute both functions. (E.g. „on object clicked > fire click event“)
Note: The behavior always adds the objects UID as the first parameter for easy picking in the called functions! Keep that in mind if you intend to use parameters.