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"

Lock jump button while in air?

Hello, I am very new to programming and need to know how I can lock the jump button while my character is in the air. Currently my character uses energy to jump and if I keep pressing the jump button while in the air it keeps using energy. How can I prevent this? alt text

Product Version: UE 4.9
Tags:
jump_blueprint.png (305.1 kB)
more ▼

asked Nov 28 '15 at 08:23 PM in Blueprint Scripting

avatar image

Gorgoth
3 1 1

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

1 answer: sort voted first

Add a variable called UseEnergy. Right before you subtract .2 energy put it in an if statement, and only subtract if true. After you subtract away the .2 energy set it to false. Right click and add an event on landed and then set the variable to true.

more ▼

answered Nov 28 '15 at 08:49 PM

avatar image

ShrewGlue
444 99 84 108

avatar image Gorgoth Nov 28 '15 at 09:33 PM

Thanks for the assist. Works like a charm.

avatar image ShrewGlue Nov 28 '15 at 10:35 PM

Np.

Please accept answer for tracking purposes.

(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