I got it

I started by intellistubling through the location and transforms and had
FVector ObjectVec3 = GetOwner()->GetTransform().GetLocation();
But then when I went through the documentation, I saw GetActorLocation(), which made it a single call.

After the third hint, I ended up with:
FVector ObjectVec3 = GetOwner()->GetActorLocation();
FString ObjectPos = (ā€œX = %s, Y= %s, Z= %sā€, ObjectVec3.ToString());

Which correctly gave me:
image

Then after reading the ToString documentation, I realized I had extraneous code and deleted code down to:
FString ObjectPos = GetOwner()->GetActorLocation().ToString();

2 Likes

Privacy & Terms