# Patrol Location Vector Invalid

**URL:** <https://forums.unrealengine.com/t/patrol-location-vector-invalid/773575>\
**Category:** AI\
**Tags:** Behavior-Tree, problems, unreal-engine, vector, question, Blueprint\
**Created:** [February 18, 2023, 4:16pm UTC](https://forums.unrealengine.com/t/patrol-location-vector-invalid/773575 "2023-02-18T16:16:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phin\_The\_Platy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Phin\_The\_Platy](https://forums.unrealengine.com/u/Phin_The_Platy)\
**Post date:** [February 18, 2023, 4:16pm UTC](https://forums.unrealengine.com/t/patrol-location-vector-invalid/773575/1 "2023-02-18T16:16:41Z")

</div>

Okay so,long story short im making a behaviour tree for an enemy but it never goes in patrol; i doubt is a nav mesh problem cause in chase and attack he calmly steps upon the said nav mesh. But it doesn’t even consider the patrol sequence at all. When i debug it,it says that the vector (Patrol Location) is invalid,but i connected the key to the keyboard value and the radius is enough,i even tried reducing the ai sight sense,but the invalid vector problem stays,someone has any idea on how i could fix it?

 ![okpfdiogf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/5/46540c5b9185999edaa75b7b42596a78d73da8c1.jpeg)  
 ![jf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/f/79f4b01c0eda9f1af3e7cda9084b5c3f39f5aefc.png)  
 ![png-clipart-game-buttons-game-buttons-ui](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/f/f/bffebc3c3edcec37e3fdae308be668dd451e2226.png)

---

<div class="post-metadata">

**Author:** ![SpauldingTrader](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SpauldingTrader](https://forums.unrealengine.com/u/SpauldingTrader)\
**Post date:** [November 7, 2023, 8:23pm UTC](https://forums.unrealengine.com/t/patrol-location-vector-invalid/773575/2 "2023-11-07T20:23:30Z")

</div>

Did you ever find a fix for this? Your Patrol graph and mine are pretty much exactly the same and I’m running into the same issue.

---

<div class="post-metadata">

**Author:** ![NeilCanterbury](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NeilCanterbury](https://forums.unrealengine.com/u/NeilCanterbury)\
**Post date:** [June 19, 2025, 2:47pm UTC](https://forums.unrealengine.com/t/patrol-location-vector-invalid/773575/3 "2025-06-19T14:47:59Z")

</div>

I appreciate that I’m pretty late to the party here, but I was just going through the Unreal Behaviour Tree Quickstart and hit the same issue. Figured I’d post my solution in case someone else comes along.

It seemed to relate to the Patrol Location key not really being anything meaningful. This was the only place a **Blackboard Key Structure** was used. My solution was to get the Blackboard from the controller and set it like it’s done elsewhere in the tutorial, using _Set Value As Vector_:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/8/ee88cfccb9ff2a90f9bf9c3aabfe9a957498b8b2.png)

Perhaps there’s a step I missed with the structure…  
Hope this helps!

---

<div class="post-metadata">

**Author:** ![Andreagalet332](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Andreagalet332](https://forums.unrealengine.com/u/Andreagalet332)\
**Post date:** [February 2, 2026, 3:15pm UTC](https://forums.unrealengine.com/t/patrol-location-vector-invalid/773575/4 "2026-02-02T15:15:08Z")

</div>

I fixed it by setting PatrolLocation variable as Instance Editable on the BTT\_FindRandomPatrol

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/0/4/504ba069939759802ff1908add9a97ac6416f51b.png)

Then on the Main BehaviourTree I setted the patrolLocation Variable of the BTT\_FindRandomPatrol to PatrolLocation

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/0/650ba33e87d8a372dd5176d5adec25aa92c8ca62.png)

I also missed to set my player actor tag to Player, but is not directly related to this issue
