Well you also have to set the on_create_event somewhere, so you need some special function anyway. So why not create the entity from this function and then do all the init stuff there? The attached function (when calling ent_create) is then left for user stuff.