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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

Move Enemy Towards Player

The rotation is fine, but it just won't move. What am I doing wrong?alt text

Product Version: UE 4.17
more ▼

asked Aug 10 '17 at 04:12 PM in Using UE4

avatar image

17 6 6 7

avatar image BOBtheROSS Aug 10 '17 at 05:34 PM

Your setup is very unusual. The interpolation node gets the actor location from your enemy and the target is the position 200 units behind your character. With the interpolation node your enemies will have a faster movement speed when they are further away - do you want this to happen?

Never the less, it might be very slow, higher the multiplactors or the interp speed. btw. you could dissolve the multiply by -1 if you mulitply the forward vector by -200.

avatar image darkmatter48 Aug 10 '17 at 10:36 PM

You are correct and i applied what you said, but what is causing it to not move at all?

avatar image BenVlodgi Aug 10 '17 at 10:44 PM

Try setting the SetActorLocationAndRotation to teleport

avatar image darkmatter48 Aug 11 '17 at 01:07 AM

I tried this but its just not moving.

avatar image BOBtheROSS Aug 11 '17 at 10:45 PM

btw. teleport is for things that have other stuff attaches that is simulating physics, so that when you move the parten object, the child objects wont fly all over the place because they have to deal with an extreme acceleration, they just get teleported ;)

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Is your Box Component Simulating Physics?

If so, then moving the root of the actor, won't move the Box.

You can reparent your actor. - Drag the Box component on your left panel, up onto the default scene root to replace it. - Now your box should move when you SetActorLocation.

If that doesn't work. Do SetLocationAndRotation on the Box directly, also make sure anywhere you were referring to the actor, you now refer to the box component. Specifically when in your BP you GetActorLocation with no input pin, you'll want to GetWorldLocation for the Box.

more ▼

answered Aug 11 '17 at 02:09 PM

avatar image

2.1k 38 17 52

avatar image darkmatter48 Aug 11 '17 at 09:31 PM

That was it. Thanks a lot.

(comments are locked)
10|2000 characters needed characters left
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