Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How do I attach a targetpoint to my Character?

I want to make an actor teleport in front of my character. So I figured if I can add an targetpoint to attach to my character I can make any actor teleport to that targetpoint location. I used Set Actor Location but that puts the actor in my character rather in front of. I'm very new to UE4 just a few days.

Product Version: Not Selected
more ▼

asked Nov 05 '14 at 07:37 PM in Blueprint Scripting

avatar image

405 18 11 31

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

This was a little bit tricky for me but I think I got something working for you. Example: https://www.youtube.com/watch?v=UpcVRFXG6CU

So I got my Movable Mesh from level (This could be an actor placed in the level) to teleport in front of MyCharacter. To do this, I added a sphere component to MyCharacter components, a little bit ahead of my character. This sphere component is invisible in game, it serves as our teleport location. Now to access this component in our Level Blueprint, you have to get the player pawn, get the root component from that and then get the child component from that one. Our sphere component happens to be the third child component from our character components. Then we just get the location from that sphere component and plug it to our teleport's destination.

Hopefully this was helpful for you!

alt text

alt text

component.png (287.2 kB)
levelblueprint.png (98.2 kB)
more ▼

answered Nov 05 '14 at 09:12 PM

avatar image

916 45 20 77

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question