How to create an "idle" AI?

I’ve downloaded the free version of the package today to see if it’s appropriate for my needs. My game centres around the player creating creatures to attack zombies that are being spawned at timed intervals. This means I need the AI to be capable of idling whilst there is nothing to attack, for example if all the zombies are dead. They need to be able to wait until more zombies have spawned and then see them and go to them to attack. Is there a way to do this with this package? I’d be grateful for any help!

Edit: Also if there are more targets alive once a zombie or slime finishes killing it’s current target, is there a way of having it change target to one of them remaining targets?

Hi

The easiest way is to simply set the destination of the AI to the AI itself.

You will need to have another script that checks if the target is dead and if so switches the target to the nearest enemy. This is not really something that this package provides or is suppose to provide.