How to make AI targetLocation of another AI?

Just use a decorator on both branches.

For example:

The left branch will execute when the BB variable - CanSeePlayer is true, otherwise execute the right branch.