Hey. You should take a look at behavior or state trees if you want to create more complex AI behavior.