How to get aicontroller from event beginplay?

A little more info, I’m working in 4.17 and in the side scroller template.