I need a Wandering Ai

Like a cow but runs away when the player comes and if Custom Button is pressed cow Ignores player.

Help appreciated:)

So write a wandering AI. What is the question here?

I’m the author of Panda BT (http://www.pandabehaviour.com), which is a script-based Behaviour Tree engine. You could make use of it to write your cow AI.

This online demo shows an AI for the game tag (the child game). The AIs will try to run away from the player when the player “is it”, which would be similar to your cow AI.

You are welcome on this thread if you have any question about using this tool.