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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

[Solved] How to match different stance speeds?

Hello, I've recently been into developing a stealth game just like Splinter Cell with variable speeds and stuff. I got the variable speeds down easily for both standing and crouch, so I decided to expand it a little further by making one stance affect the other. I have 4 variable speeds for each stance.

So I want, for example, when I walk with speed 1, to crouch with speed 1 when I push the crouch button. Then if while crouching I decide to change my crouching speed to 4, when I get up to walking stance I want to walk with speed 4 and so on.

When I wrote this script I was 100% sure it'd work, because it makes complete sense to me... but it doesn't work, so what I am I doing wrong?

Details (to avoid confusion with the numbers):

Walking | Speed 1 = 93.75---------------------------------------------------------------------------------------Crouching | Speed 1 = 140 Walking | Speed 2 = 187.5---------------------------------------------------------------------------------------Crouching | Speed 2 = 170 Walking | Speed 3 = 281.25-------------------------------------------------------------------------------------Crouching | Speed 3 = 200 Walking | Speed 4 = 375------------------------------------------------------------------------------------------Crouching | Speed 1 = 230

First couple of screenshots are for decelerating & the latter two for accelerating.

[Edit: The script is working. The print string values I was getting were wrong.] alt text alt text alt text alt text

Product Version: UE 4.10
capture0.png (509.3 kB)
capture2.png (510.5 kB)
capture1.png (287.0 kB)
capture3.png (293.6 kB)
more ▼

asked Feb 10 '16 at 02:19 AM in Blueprint Scripting

avatar image

3 1 4 7

avatar image zmalsberg Feb 10 '16 at 06:27 AM

You could try using a series of 'select float' nodes instead, switching to the value for each "speed" mode.

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

0 answers: sort voted first
Be the first one to answer this question
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