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 do make the pawn to jump over time?

So I need to make a var called happiness, and i want it to decrease by a value every second or something. If > 50 the bot pawn will jump every decrement. If less than 50 i want to print a string saying he's sad. and lastly At 0 the value or timer will reset to 100.

Product Version: UE 4.19
more ▼

asked Jul 20 '18 at 12:38 PM in Using UE4

avatar image

1 2

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

1 answer: sort voted first

I don't know how far along you are but I will give you some pointers to look at. To do something every X seconds you can set a looping timer. In Blueprint you call SetTimer and give it the name of the function to call each tick. Make that custom event in your blueprint and decrement the happiness. In order to make your character jump there is a LaunchCharacter node which is perfect for that purpose. Just give it enough Z launch velocity.

more ▼

answered Jul 20 '18 at 06:27 PM

Brian Johnstone (suspended)
(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