Added init function to Auto Action

This is called as soon as the last task ends, in the same frame.