x

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"

How to move player character automatically in the direction he is looking and stop when he turns the other side

I want my player character to move in the direction he is looking at for a certain time (say 2 seconds) without any input of the player and stop moving when he turns away. Please try to explain me how to do this kind blue print.

Thanks in advance :)

Product Version: UE 4.13
Tags:
more ▼

asked Oct 17 '16 at 10:57 AM in Blueprint Scripting

avatar image

vishwak
1 1 1 3

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

1 answer: sort voted first

Not sure exactly what youre asking for, but you can use GetForwardVector to get the direction your player is moving, then plug that into the location pin of an AddMovement Input Node. You can set the scale value to 1 and keep target as self. If you want this to be done in 2 seconds, you can either make a timeline, or make a float variable setto 2 and subtract the deltaTime pin from it (the one on event Tick), then use a branch to check if it is Hope that helps

more ▼

answered Oct 17 '16 at 11:25 AM

avatar image

ViceVersa
1k 64 50 98

(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