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 can I count how many steps my character is taking?

Is there a way to count how many steps my character is taking by using the SK_Mannequin_PhysicsAsset foot_r and foot_l ?

The plan is that I need the character to make exactly x more steps after I release forward and I do not want just a simple delay.

Product Version: UE 4.8
more ▼

asked Jun 21 '15 at 12:00 AM in Blueprint Scripting

avatar image

6 2 4

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

1 answer: sort voted first

You could attach a socket to each foot, then attach a box collision to each foot socket. When they overlap with another object add +1 to an int that would be a "step counter".

more ▼

answered Jun 21 '15 at 06:11 PM

avatar image birdfreeyahoo Jun 21 '15 at 06:19 PM

What about an animation notification? Wouldn't that be more efficient?

avatar image Adam Davis STAFF Jun 21 '15 at 06:24 PM

I suppose it would, though honestly I know nothing about animation so I couldn't answer that with certainty. This solution is the way I would do it due to the limited knowledge I have on the subject of animation in general.

avatar image astearon Jun 21 '15 at 10:32 PM

Animation modification could only apply at a certain part of the animation (a key frame) however if you step on something that you hit before that key animation is reached (ex on a slope) then that would not be as accurate.

Adam, thank you for the info, i had the same idea about adding a collision box on the heel i just forgot that i had to add a socket beforehand :)

avatar image Adam Davis STAFF Jun 22 '15 at 06:15 PM

I'm happy to help!

(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