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 trigger animation with Three Key Inputs?

My Leap Action requires three input to work, ctrl being the main input. Currently only works with input ctrl and forward (w), but does not trigger with jump bool variable.. Any ideas on how to get this action input working with all three keys pressed? Also the ctrl is sharing a crouch Action input. Any help will be appreciated. Thanks! alt text

alt text

Product Version: UE 4.18
Tags:
blueprint.jpg (366.8 kB)
jump.jpg (178.1 kB)
more ▼

asked Dec 18 '17 at 12:04 AM in Blueprint Scripting

avatar image

crazysketch85
16 1 1 7

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

1 answer: sort voted first

Hey there, so if i understand correctly you want to be able to leap with Ctrl + W + Jump pressed? If that's the case you can do this at least 2 ways. The first one is to have boolean variables like you have Jump Pressed? but for Ctrl and W aswell. The main question here is if there is a specific input order like Ctrl + W + Jump or it can also be W + Jump + Ctrl, etc. If order doesn't matter then on each input you need to check if the other 2 are true to do the Leap. If order matters (assuming it's Ctrl + W + Jump) then only on Jump do you check if the boolean variables for Ctrl and W are set to true. The other way is to simply check that on tick (or even/odd ticks if you dont want to check that every frame) all 3 variables are set to true (or use the Is Key Pressed function, but i assume you want to use the action mappings for this and not have it harcoded). Hope this helps.

more ▼

answered Dec 18 '17 at 12:52 AM

avatar image

xlar8or
6k 160 128 304

avatar image crazysketch85 Dec 18 '17 at 01:33 AM

Thanks for the tip will try this out! there is no specific order. Thing is for some reason when I add the jump pressed? boolean it doesn't activate and I do need jump pressed slightly to make the leap work correctly. I'll look into on how to use event ticks.

avatar image xlar8or Dec 18 '17 at 09:51 AM

Let me know if it works :)

(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