But you need to set the event function somewhere (if this was possible).

Then code your function like it was an event and call it from your routine where you do ent_create. That equals to some sort of on_create_event.

I've been at that point and at the end I figured that some on_create_event does not make sense.