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"

Pawn breaks in PIE Multiplayer

I have made a very simple game following the shooter game example.

I have a character with a proper 3D mesh and camera component the actual pawn class set in world setting is a blueprint derived on my custom character c++ class.

When I play as single player (1 player in play options) then everything goes as expected. But if I increase the no of players to 2 then, only the player in editor works correctly and the player in other window has its pawn stuck in air (at the location of player Start) the movement does not works and only yaw and pitch controls work.

Moreover If I check the "Run dedicated sever" with 1 or 2 players then all of them are stuck in air and won't move on movement input but rotational inputs (yaw and pitch still works).

I have checked the replication boxes in the blueprint but its not helping anything.

This is the only code responsible for player movement in my character class

 void AEECharacter::SetupPlayerInputComponent(UInputComponent* InputComponent){
     InputComponent->BindAxis("MoveForward", this, &AEECharacter::MoveForward);
     InputComponent->BindAxis("MoveRight", this, &AEECharacter::MoveRight);
     InputComponent->BindAxis("LookYaw", this, &AEECharacter::RotateRight);
     InputComponent->BindAxis("LookPitch", this, &AEECharacter::RotateUp);
 void AEECharacter::MoveForward(float scale){
     GEngine->AddOnScreenDebugMessage(1, 5, FColor::Blue,*(FString::SanitizeFloat(scale)));
     FRotator controlRotation=GetControlRotation();
     controlRotation.Roll = controlRotation.Pitch = 0;
 void AEECharacter::MoveRight(float scale){
     GEngine->AddOnScreenDebugMessage(1, 5, FColor::Blue, *(FString::SanitizeFloat(scale)));
     FRotator controlRotation = GetControlRotation();
     controlRotation.Roll = controlRotation.Pitch = 0;
     const FVector Direction = FRotationMatrix(controlRotation).GetScaledAxis(EAxis::Y);
     AddMovementInput(Direction, scale);
 void AEECharacter::RotateUp(float scale){
 void AEECharacter::RotateRight(float scale){
Product Version: Not Selected
more ▼

asked Jan 25 '15 at 11:51 AM in C++ Programming

avatar image

Commander Shepard
827 62 83 220

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

1 answer: sort voted first

Okay I was stupid again! I forgot to call Super:: functions in possedBy and SetupPlayerInputComponent

more ▼

answered Jan 25 '15 at 03:26 PM

avatar image

Commander Shepard
827 62 83 220

(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