What does AI do after it kills target

I was able to figure out what went wrong all the code I did was correct and fired the right way but there was one thing I needed to do that I did not even know existed… Max age.