https://differentdirection.youtrack.cloud/issue/OC-3/Replication-Projectiles complete #3
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Content/Input/Lean_IA.uasset
Normal file
BIN
Content/Input/Lean_IA.uasset
Normal file
Binary file not shown.
BIN
Content/MyDDICharacter.uasset
Normal file
BIN
Content/MyDDICharacter.uasset
Normal file
Binary file not shown.
BIN
Content/MyDDICharacter2.uasset
Normal file
BIN
Content/MyDDICharacter2.uasset
Normal file
Binary file not shown.
Binary file not shown.
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "DDICharacter.h"
|
#include "DDICharacter.h"
|
||||||
|
#include "GameFramework/SpringArmComponent.h"
|
||||||
|
|
||||||
// Sets default values
|
// Sets default values
|
||||||
ADDICharacter::ADDICharacter()
|
ADDICharacter::ADDICharacter()
|
||||||
@@ -11,15 +12,8 @@ ADDICharacter::ADDICharacter()
|
|||||||
bReplicates = true;
|
bReplicates = true;
|
||||||
// bReplicateMovement = true;
|
// bReplicateMovement = true;
|
||||||
|
|
||||||
CameraComponent = CreateDefaultSubobject<UCameraComponent>(TEXT("CameraComponent"));
|
|
||||||
CameraComponent->SetupAttachment(GetMesh());
|
|
||||||
CameraComponent->SetRelativeLocation(FVector(0.0f, 0.0f, 50.0f));
|
|
||||||
CameraComponent->bUsePawnControlRotation = true;
|
|
||||||
|
|
||||||
/* Was going to add, but showed up as duplicate.
|
|
||||||
//CharacterMeshCompenent = CreateDefaultSubobject<USkeletalMeshComponent>(TEXT("CharacterMeshComponent"));
|
|
||||||
// CharacterMeshCompenent->SetupAttachment(CameraComponent);
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Called when the game starts or when spawned
|
// Called when the game starts or when spawned
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
#include "GameFramework/Character.h"
|
#include "GameFramework/Character.h"
|
||||||
#include "DDICharacter.generated.h"
|
#include "DDICharacter.generated.h"
|
||||||
|
|
||||||
|
|
||||||
UCLASS()
|
UCLASS()
|
||||||
class OPENCONFLICT_API ADDICharacter : public ACharacter
|
class OPENCONFLICT_API ADDICharacter : public ACharacter
|
||||||
{
|
{
|
||||||
@@ -25,11 +26,6 @@ public:
|
|||||||
virtual void Tick(float DeltaTime) override;
|
virtual void Tick(float DeltaTime) override;
|
||||||
|
|
||||||
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Camera")
|
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "Camera")
|
||||||
UCameraComponent* CameraComponent;
|
UCameraComponent* CameraComponent
|
||||||
|
|
||||||
/* Was going to add but showed up as duplicate
|
|
||||||
//UPROPERTY(VisibleDefaultsOnly, BlueprintReadOnly, Category = "Mesh")
|
|
||||||
//class USkeletalMeshComponent* CharacterMeshCompenent;
|
|
||||||
*/
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user