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"

Player Won't Crouch?

Hello everyone. So, here is my problem. My player won't crouch! I set up the blueprints and everything, but he still won't crouch. I made sure to check "can crouch". It still won't work, though. Here is a picture of of my settings. Do you know why it's not working. I've been having trouble with this for so long. Thanks :)

alt text

Product Version: UE 4.13
screenshot (42).png (526.2 kB)
more ▼

asked Nov 05 '16 at 02:10 AM in Blueprint Scripting

avatar image

13 7 6 9

avatar image Rekenq Nov 05 '16 at 07:29 AM

I see your Can Crouch variable is replicated. Is this a multiplayer game? I think the cause of your problem might be that you are not handling replication properly.

avatar image Dark_Shadow_12 Nov 05 '16 at 04:09 PM

Yeah, it is a multiplayer game, but i'm testing it with one player. could the replication be the cause, or does it only affect it in multiplayer?

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

2 answers: sort voted first

It's hard to determine what's happening based off of just that input call.

So, I'll go through debugging steps instead.

  • Does your input action crouch trigger?

  • Is your mesh's GetAnimInstance returning an actual CharacterAnimationBlueprint?

  • Does your character's Crouch function trigger even once?

more ▼

answered Nov 05 '16 at 04:35 PM

avatar image

1.2k 31 8 33

avatar image Dark_Shadow_12 Nov 05 '16 at 04:42 PM

Yeah, I know all that stuff is true because it is triggering the crouch animation, but the character isn't actually crouching. Just triggering the animation.

avatar image MajinSephiroth Nov 05 '16 at 05:01 PM

I'm confused, doesn't that make him crouch? Since the animation does trigger.

avatar image Dark_Shadow_12 Nov 05 '16 at 05:20 PM

Well, I was hoping the camera would move down, like I've seen on tutorials, but it doesn't. It just stays the normal player head height.

avatar image MajinSephiroth Nov 06 '16 at 01:44 AM

The camera on a character is fixed unless you program it otherwise. So, if you want the camera to move down, you need to add that functionality to your crouch function.

avatar image Dark_Shadow_12 Nov 06 '16 at 02:06 AM

Oh, ok. It's kinda weird though because in the tutorials i've watched all they did was put the crouch function and the camera moved down. Also, why would there be a crouched height thing in the settings under camera?

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

In the character movement component settings make sure "can crouch" is checked

more ▼

answered Jan 15 '19 at 10:58 AM

avatar image

23 3 5 7

(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