Solved movement and basic replication #1

Merged
Keeper317 merged 6 commits from multiplayerv2 into main 2025-11-23 03:22:15 +00:00
3 changed files with 8 additions and 0 deletions
Showing only changes of commit 44d54457ae - Show all commits

File diff suppressed because one or more lines are too long

View File

@@ -8,6 +8,9 @@ ADDICharacter::ADDICharacter()
{ {
// Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it. // Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true; PrimaryActorTick.bCanEverTick = true;
bReplicates = true;
// bReplicateMovement = true;
CameraComponent = CreateDefaultSubobject<UCameraComponent>(TEXT("CameraComponent")); CameraComponent = CreateDefaultSubobject<UCameraComponent>(TEXT("CameraComponent"));
CameraComponent->SetupAttachment(GetMesh()); CameraComponent->SetupAttachment(GetMesh());
CameraComponent->SetRelativeLocation(FVector(0.0f, 0.0f, 50.0f)); CameraComponent->SetRelativeLocation(FVector(0.0f, 0.0f, 50.0f));