Couldn't you just end the currently assigned action and start the new function and set its my-pointer to the entity's pointer?

Regards,
Pegamode.