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"

c++ MaxWalkSpeedCrouched Setting


I'm here running my head in circles (maybe it's to do with how i'm stating the code but at the moment looks more like an oddity).

The Code is as Follows:

 if (ProneStatus == EPlayerActivityStatus::Available) //To Prone!
             if (!Character->GetCharacterMovement()->IsCrouching())
             Character->GetCharacterMovement()->MaxWalkSpeedCrouched = MaxCrouchedSpeeds.Y;
             Changed = true;
             NewProneStat = EPlayerActivityStatus::InUse;
  else if (ProneStatus == EPlayerActivityStatus::InUse) // Out of Prone!
             Character->GetCharacterMovement()->MaxWalkSpeedCrouched = MaxCrouchedSpeeds.X;
             Changed = true;
             NewProneStat = EPlayerActivityStatus::Available;

If either these are true, then the Max Speed is to be changed to My FVector2D Structure Where FVector2D(Normal Crouched, Prone Crouched).

Here's the odd behavior (Where MaxCrouchedSpeeds.X = 250, and .Y = 125):

If I am going to Prone, MaxCrouchedSpeed changes to 125. if I am going out of Prone, MaxCrouchedSpeed changes to 250 but can only move at 173 (75%) by single input. <-- This meaning that I can only achieve 250 if I'm adding input from Different Direction Vectors. So from WASD Movement, If only one Key at a time, Max speed is 173. It only Reaches 250 if WA, WS, DS, DA inputs are fed. If I activate Prone again, Speed is correctly changed to 125 properly once more (and stays at that regardless of WASD combinations).

Why is this happening?

If this is expected behavior, what should I do differently to get the desired functionality?

Product Version: UE 4.20
more ▼

asked Nov 30 '18 at 12:08 AM in Bug Reports

avatar image

279 15 18 21

avatar image Jeff A ♦♦ STAFF Nov 30 '18 at 04:15 PM


We've recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.



(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