I narrowed it down a little bit by writing a function in my pickup-class. The “AttachRootComponentTo”-Function inside this function is causing the crash.
void ASomPickup::AttachToCompSocket(USceneComponent* Comp, FName Socket)
{
//Disable Physics
this->EnvironmentMeshComponent->SetSimulatePhysics(false);
//Disable Collision
this->EnvironmentMeshComponent->SetCollisionEnabled(ECollisionEnabled::NoCollision);
//Attach Pickup to Socket
this->AttachRootComponentTo(Comp, Socket, EAttachLocation::SnapToTarget);
}
As I said. In singleplayer it works fine. In multiplayer the game crashes. Does anybody have a suggestion?