# Making GetActorLocation() into a pointer

**URL:** <https://forums.unrealengine.com/t/making-getactorlocation-into-a-pointer/457994>\
**Category:** Cinematics & Media\
**Tags:** unreal-engine, pointer, CPP, question\
**Created:** [November 4, 2019, 1:54am UTC](https://forums.unrealengine.com/t/making-getactorlocation-into-a-pointer/457994 "2019-11-04T01:54:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Endersky1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Endersky1](https://forums.unrealengine.com/u/Endersky1)\
**Post date:** [November 4, 2019, 1:54am UTC](https://forums.unrealengine.com/t/making-getactorlocation-into-a-pointer/457994/1 "2019-11-04T01:54:05Z")

</div>

This is a really simple issue probably and I’m probably just really dumb but I’m trying to use the PlayerWorldCameraShake function and I need to pass it an epicenter, I try to pass it my character’s location so I use GetActorLocation(), but then I get an error that it needs a pointer and to use the & symbol. So I changed it to &GetActorLocation() and now it’s telling me I can’t convert an int to a vector. Anyone know how to solve this?

```
GetWorld()->GetFirstPlayerController()->PlayerCameraManager->PlayWorldCameraShake(GetWorld(), CamShake, &GetActorLocation, 0, 1000, 1, false);
```

---

<div class="post-metadata">

**Author:** ![BlueMind\_Studio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BlueMind\_Studio](https://forums.unrealengine.com/u/BlueMind_Studio)\
**Post date:** [November 4, 2019, 6:30am UTC](https://forums.unrealengine.com/t/making-getactorlocation-into-a-pointer/457994/2 "2019-11-04T06:30:04Z")

</div>

you re callinv &GetActorLocation, not &GetActorLocation()

but I guess you want something like: FVector\* myPtrToAVectorLocation = GetActorLocation()

use the myPtrToAVectorLocation in your cameraShake

---

<div class="post-metadata">

**Author:** ![Dandello2000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dandello2000](https://forums.unrealengine.com/u/Dandello2000)\
**Post date:** [November 4, 2019, 2:26pm UTC](https://forums.unrealengine.com/t/making-getactorlocation-into-a-pointer/457994/3 "2019-11-04T14:26:27Z")

</div>

in theory:  
MyActor-\>GetActorLocation()
