x

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. 

Crouching Difficulties!

Whenever I crouch so does player 2. The crouch is being activated by a boolean being set to true whenever ctrl is pressed then set to false whenever ctrl is released (this is being set in the third person character blueprint), then in the animation blueprint the third person character blueprint is being called and a branch is asking whether or not ctrl is being pressed if so set crouch to true. All works fine for a single player game how would i go about making this available for a multiplayer game.

Product Version: UE 4.12
Tags:
more ▼

asked Jul 28 '16 at 06:36 AM in Blueprint Scripting

avatar image

Diomedes246
24 5 5 8

avatar image TechnicallyLew Jul 28 '16 at 07:20 AM

Post a screenshot of the BP. Hard to diagnose otherwise. Sounds odd... is the crouch called from the Player Controller? If not, are you somehow replicating or casting to all Third-Person BP?

Screenshots! :)

avatar image Diomedes246 Jul 28 '16 at 07:43 AM

alt text I have done nothing other than this the first picture is in the Third-Person BP and the second is on the AnimBP

crouch1.jpg (62.5 kB)
crouch2.jpg (101.6 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

I found out why I was casting to the player character instead of trying to get pawn owner.

more ▼

answered Jul 30 '16 at 09:36 AM

avatar image

Diomedes246
24 5 5 8

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

Unreal has a built-in crouching system. This is very easy to use after setting up an action input. Set this up in your project settings and add these nodes to your character blueprint and it should work correctly with all local players. You can adjust the crouch height of your players in the character movement component of your player blueprint.

alt text

crouch.png (53.2 kB)
more ▼

answered Jul 28 '16 at 03:16 PM

avatar image

Anaklosmos
170 35 29 54

avatar image TheMunky Jul 28 '16 at 05:49 PM

This is the best method, I tried my own Blueprint crouch system and hit endless problems with collision, Guess it's possible but the Built in crouch is flawless and has tonnes of different choices of customizing it.

avatar image Diomedes246 Jul 29 '16 at 01:45 AM

Yeah i understand, but will this work with a third person game??

avatar image Anaklosmos Jul 30 '16 at 04:41 AM

Honestly, in third person, wouldn't this be more of an animation than a crouch system? You would have to play your crouch animation when your player hits the crouch button, thus allowing all of the other players in the game to see that the character is crouching. If it is a first person game and the other players are simply seeing you crouch from afar, use both the animation (for the other players in the game to see the crouch) and the very simple crouch blueprint (so the player who is doing the crouching can see that he is crouched).

(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