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"

PlayerController in multiplayer question

Hello everyone i have a lilttle problem that i cant solve couse i just dont understand how it works ! I have a character and a character controller

when I define 2 in Numbers of Players in the multiplayer options my first player works just fine but the second player kinda dislike my " Run/Walk Speed " Blueprint so he dont change the walkspeed if i press the InputAction Run key

so my question is what i do wrong and how do it the correct way

Does anyone have an idea why this might be happening?

alt text

Product Version: UE 4.10
herocontroller.png (233.6 kB)
more ▼

asked Mar 30 '16 at 06:26 PM in Blueprint Scripting

avatar image

3 1 3

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

1 answer: sort voted first

I think this is because you are getting the player pawn and character by index which means that you are always getting the exact same actor and not the one that corresponds to your controller. Instead of using the Get Player Character/Pawn nodes try using the GetControlledPawn node which gets you the pawn that is currently possessed by your controller.

alt text

more ▼

answered Mar 30 '16 at 09:39 PM

avatar image

600 17 9 33

avatar image CallofBattle Mar 30 '16 at 10:38 PM

that's what I've thought but i can't stick this togetheralt text

avatar image MacDx Mar 30 '16 at 10:48 PM

Cast it alt text

A character actor inherits from pawn, so casting is the way to go

cast.png (48.8 kB)
avatar image CallofBattle Mar 31 '16 at 01:49 AM

Thanks alot ! it helps

(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