Thank you for your reply; however, I don't quite understand what you said. Can you please clarify more? Do I have to do modify a script? If so which one. Sorry for my ignorance.If you're using the Can See Object task then the agent is likely seeing the same layer mask. In this situation you should assign a set of GameObjects using the variable system that the Can See Object task can see:
Accessing Variables from non-Task Objects - Opsive
Variables are normally referenced by assigning the variable name to the task field within the Behavior Designer inspector panel. Local variables can also be accessed . . .opsive.com