I misread your post earlier and didn’t see what you were trying to do. Avarian, as far as I know, is correct.
This, or use events and callbacks.