# Target dynamic

**URL:** <https://forums.unrealengine.com/t/target-dynamic/453031>\
**Category:** Blueprint\
**Tags:** target, unreal-engine, Blueprint, question\
**Created:** [July 29, 2019, 6:00pm UTC](https://forums.unrealengine.com/t/target-dynamic/453031 "2019-07-29T18:00:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![halobungie](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/halobungie/32/464852_2.png) [@halobungie](https://forums.unrealengine.com/u/halobungie)\
**Post date:** [July 29, 2019, 6:00pm UTC](https://forums.unrealengine.com/t/target-dynamic/453031/1 "2019-07-29T18:00:44Z")

</div>

![283498-test.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/0/fb04029b2527f24554bbf57bf24f913b273fe3fe.jpeg)

---

<div class="post-metadata">

**Author:** ![Alekann01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alekann01](https://forums.unrealengine.com/u/Alekann01)\
**Post date:** [July 29, 2019, 10:11pm UTC](https://forums.unrealengine.com/t/target-dynamic/453031/2 "2019-07-29T22:11:24Z")

</div>

Hi halobungie

I personally haven’t used the AI Move To events before. But I imagine they would work something like this:

 ![283543-targetmovetopawn.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/c/0dc1d0c34fc28063d0a1e8887b0971eef6d9e495.png)

Let me know if you need any of this needs explaining. Hope it helps 🙂

---

<div class="post-metadata">

**Author:** ![halobungie](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/halobungie/32/464852_2.png) [@halobungie](https://forums.unrealengine.com/u/halobungie)\
**Post date:** [July 30, 2019, 10:18am UTC](https://forums.unrealengine.com/t/target-dynamic/453031/3 "2019-07-30T10:18:19Z")

</div>

Hello Alekann01, Thank you very much. I have problems with **“Current Target”.** What **Component** is this? Is it a Variable or something else?

---

<div class="post-metadata">

**Author:** ![halobungie](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/halobungie/32/464852_2.png) [@halobungie](https://forums.unrealengine.com/u/halobungie)\
**Post date:** [July 30, 2019, 4:18pm UTC](https://forums.unrealengine.com/t/target-dynamic/453031/4 "2019-07-30T16:18:20Z")

</div>

I’m not Shure if the “Pawn Reference” is now correct? I have take “Cast to ALS\_CharacterBP3” → this is the Character on the Right Side in the Picture. This character should Walk to the Target after i push the Keyboard!

Please see this Picture:

 ![283641-unbenannt.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/6/ad64fb19ccd6c0d85cac2ee8f2d1f34bc5c319c4.jpeg)

---

<div class="post-metadata">

**Author:** ![Alekann01](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Alekann01](https://forums.unrealengine.com/u/Alekann01)\
**Post date:** [July 31, 2019, 9:18pm UTC](https://forums.unrealengine.com/t/target-dynamic/453031/5 "2019-07-31T21:18:54Z")

</div>

Hi halobungie.

Unfortunately, your pawn reference is not correct. I will talk through your logic.  
CharacterMovement (Actor Component) → GetPawnOwner (Player Controller) → Cast to Pawn (Cast failed).

Looking at your screenshot, it seems you are already inside your pawn, pawn reference can simply be Self. A Character class inherits from the Pawn class, so you can treat a character as a pawn, but you cannot treat a pawn as a character.

To your other question:

> I have problems with “Current Target”. What Component is this? Is it a. Variable or something else?

Yes, this was a variable I created to store the return value of the spawn actor node. We can use this variable access this object easily for future functionality. Apologies for not making that clear.

I hope this helps.

---

<div class="post-metadata">

**Author:** ![halobungie](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/halobungie/32/464852_2.png) [@halobungie](https://forums.unrealengine.com/u/halobungie)\
**Post date:** [August 1, 2019, 11:23am UTC](https://forums.unrealengine.com/t/target-dynamic/453031/6 "2019-08-01T11:23:51Z")

</div>

Hello Alekann01, Thanks sooo much!!! Now it’s Working!!! Many Thanks!!!

---

<div class="post-metadata">

**Author:** ![halobungie](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/halobungie/32/464852_2.png) [@halobungie](https://forums.unrealengine.com/u/halobungie)\
**Post date:** [August 4, 2019, 2:36pm UTC](https://forums.unrealengine.com/t/target-dynamic/453031/7 "2019-08-04T14:36:58Z")

</div>

**A problem unfortunately still exists:  
if i move the Target-Cube (= Static Mesh), then the NPC’s would not go to the New place - they go only to the first Location before i have moved the Static Mesh. Have you any idea to solve this problem?**
