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"

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 launch a character in a direction relative to them.

I am making an FPS game and I want to have my character side-step using q and e. I know how to launch a character but it is always in a set direction. How would I launch them left or right, relative to the direction they are facing?

Product Version: UE 4.19
Tags:
more ▼

asked Jul 15 '18 at 09:56 PM in Blueprint Scripting

avatar image

Empoleon4625
1 1 2 2

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

1 answer: sort voted first

Use the GetRightVector() it will give you the right vector, just multiply that by the force you want to launch the character at and plug it in the LaunchCharacter node. And obviously for the left version multiply by -1.

Here's what I use to do that

alt text

more ▼

answered Jul 15 '18 at 10:51 PM

avatar image

Enjobg
121 1 3 5

avatar image Empoleon4625 Jul 16 '18 at 12:38 AM

Thank you, this worked.

(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