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"

Dive mechanic in midair

AAAAAAA I've been trying this for the past few hours and I've finally given in and asked the answer hub. How do I make a mechanic where when I press LShift in midair, it sends the character flying forward a bit in the direction it was facing before, much like in A Hat In Time, when pressing the crouch button in air. (I know aHiT was made in ue3 so looking at the code probably wouldn't help me if I was able to look at it) I'll be able to add a way so you can't infinitely jump and controller inputs myself, my problem was the directional thing. I don't know how to get the direction the player character is looking and apply that to the dive. I am using Unreal 4.19 and the third person template. Thanks for any help!

Product Version: UE 4.19
Tags:
more ▼

asked Mar 02 '19 at 03:08 PM in Blueprint Scripting

avatar image

Ocrann-
1 1 3

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

1 answer: sort voted first

I don't know how to get the direction the player character is looking

if thats the only issue then you can just use the actor forward vector. or if you want the way the camera is facing then you could use the get control rotation and work from that rotator.

more ▼

answered Mar 02 '19 at 03:22 PM

avatar image

ThompsonN13
10.1k 33 10 24

avatar image Ocrann- Mar 02 '19 at 03:25 PM

Thanks! But, how do I move the player forward from that, then?

avatar image ThompsonN13 Mar 02 '19 at 03:29 PM

thats up to you really. you could use physics like the launch character or add impulse. Or timelines to have a consistent movement. or you could use some other method of your choice.

avatar image ThompsonN13 Mar 02 '19 at 03:41 PM

below is a few examples of how it could be done. note the timeline is a 0-1 value over 0.25 seconds.

alt text

capture.png (325.3 kB)
avatar image Ocrann- Mar 02 '19 at 03:45 PM

Thanks so much for the help! I've only used Unreal for 4 or 5 months so far, but I've been experimenting with the different templates. I've settled on third person now, and the answer hub is really helpful for this kind of problem!

avatar image ThompsonN13 Mar 02 '19 at 03:52 PM

im partial to the third person as well. The answerhub is a good resource to find answers since most questions youll have have been asked before.

(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