# Convert FVector to FNavLocation?

**URL:** <https://forums.unrealengine.com/t/convert-fvector-to-fnavlocation/488639>\
**Category:** C++\
**Tags:** ai-controller, unreal-engine, CPP, question\
**Created:** [September 10, 2021, 9:36pm UTC](https://forums.unrealengine.com/t/convert-fvector-to-fnavlocation/488639 "2021-09-10T21:36:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ac11b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ac11b](https://forums.unrealengine.com/u/ac11b)\
**Post date:** [September 10, 2021, 9:36pm UTC](https://forums.unrealengine.com/t/convert-fvector-to-fnavlocation/488639/1 "2021-09-10T21:36:49Z")

</div>

Probably a simple question but is it possible to convert an FVector to an FNavLocation object?  
Basically I have this:

```
FNavLocation StartingPoint;
StartingPoint = GetWorld()->GetFirstPlayerController()->GetPawn()->GetActorLocation();

```

But get the following error:

> no operator matches these  
> operands,operand types are:  
> FNavLocation = FVector

Is this type of conversion possible? Thanks for any help.

---

<div class="post-metadata">

**Author:** ![Natalo77](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Natalo77](https://forums.unrealengine.com/u/Natalo77)\
**Post date:** [February 18, 2022, 11:13am UTC](https://forums.unrealengine.com/t/convert-fvector-to-fnavlocation/488639/2 "2022-02-18T11:13:19Z")

</div>

As you can see from the `FNavLocation` struct, one of the constructors allows you to pass in a location and a nav node reference:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/3/f/c3fe8c5b153ee3baeb13d395a0e1e91d71bb4f51.png)
