# Spawn Pawn in multiplayer is weird c++

**URL:** <https://forums.unrealengine.com/t/spawn-pawn-in-multiplayer-is-weird-c/502397>\
**Category:** C++\
**Tags:** unreal-engine, UE4, CPP, UE4-27, question\
**Created:** [February 26, 2022, 5:56pm UTC](https://forums.unrealengine.com/t/spawn-pawn-in-multiplayer-is-weird-c/502397 "2022-02-26T17:56:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NJS\_CO](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NJS\_CO](https://forums.unrealengine.com/u/NJS_CO)\
**Post date:** [February 26, 2022, 5:56pm UTC](https://forums.unrealengine.com/t/spawn-pawn-in-multiplayer-is-weird-c/502397/1 "2022-02-26T17:56:30Z")

</div>

I’m Testing of spawn pawn while in multiplayer gameplay.

I’ve using serverRPC to spawn pawn and spawning pawn is showed up in server and client.

but pawn having weird behavior. when spawnning pawn while jumping, pawn is floating in server but in client, pawn is not floating and moving like possed.

oppsite is same result.

Video for explain

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/6/6/46680c11601a26cdd06c39d8ecedf60f733cf8e2.jpeg "Pawn 스폰 이상함") ](https://www.youtube.com/watch?v=dAY23OG4s-4)

Coding

in Header (MyPlayerController.h)

```auto
public:
	UFUNCTION(Server, Reliable)
	void CreateAndPosses();

```

in CPP

```auto
void AMyPlayerController::CreateAndPosses_Implementation()
{
	FVector CurrentLocation = GetPawn()->GetActorLocation();
	CurrentLocation.Z += 100.f;

	APuzzlePlatformsCharacter* OldCharacter = GetPawn<APuzzlePlatformsCharacter>();
	FActorSpawnParameters SpawnParms;
	FTransform transform = OldCharacter->GetTransform();
	transform.SetLocation(CurrentLocation);
	APuzzlePlatformsCharacter* character = GetWorld()->SpawnActor<APuzzlePlatformsCharacter>(PlayerTest, transform, SpawnParms);

	/*if (IsValid(OldCharacter)) OldCharacter->Destroy();*/
	this->Possess(character);
}

```

I’ve tested possesing oldcharacter to using tempcontroller but, It’s not worked.  
I think it’s related with character movement component however, i don’t really know about that component. So i hope someone explain why this is working like that.

Thank you
