character blueprint
This commit is contained in:
parent
dd5ec990d9
commit
6c2e8fc163
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Content/Blueprints/Character/Aura/BP_AuraCharacter.uasset
Normal file
BIN
Content/Blueprints/Character/Aura/BP_AuraCharacter.uasset
Normal file
Binary file not shown.
BIN
Content/Blueprints/Character/GoblinSpear/BP_GoblinSpear.uasset
Normal file
BIN
Content/Blueprints/Character/GoblinSpear/BP_GoblinSpear.uasset
Normal file
Binary file not shown.
Binary file not shown.
@ -4,6 +4,10 @@
|
|||||||
AAuraCharacterBase::AAuraCharacterBase()
|
AAuraCharacterBase::AAuraCharacterBase()
|
||||||
{
|
{
|
||||||
PrimaryActorTick.bCanEverTick = false;
|
PrimaryActorTick.bCanEverTick = false;
|
||||||
|
|
||||||
|
Weapon = CreateDefaultSubobject<USkeletalMeshComponent>("Weapon");
|
||||||
|
Weapon->SetupAttachment(GetMesh(), FName("WeaponHandSocket"));
|
||||||
|
Weapon->SetCollisionEnabled(ECollisionEnabled::NoCollision);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AAuraCharacterBase::BeginPlay()
|
void AAuraCharacterBase::BeginPlay()
|
||||||
|
@ -16,4 +16,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void BeginPlay() override;
|
virtual void BeginPlay() override;
|
||||||
|
|
||||||
|
UPROPERTY(EditAnywhere, Category = "Combat")
|
||||||
|
TObjectPtr<USkeletalMeshComponent> Weapon;
|
||||||
};
|
};
|
||||||
|
@ -0,0 +1,19 @@
|
|||||||
|
// Copyright; GhostPacket Games
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "CoreMinimal.h"
|
||||||
|
#include "GameFramework/Character.h"
|
||||||
|
#include "AuraCharacterBase.generated.h"
|
||||||
|
|
||||||
|
UCLASS(Abstract) // Abstract so that it cannot be dragged to a level
|
||||||
|
class AURA_API AAuraCharacterBase : public ACharacter
|
||||||
|
{
|
||||||
|
GENERATED_BODY()
|
||||||
|
|
||||||
|
public:
|
||||||
|
AAuraCharacterBase();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
virtual void BeginPlay() override;
|
||||||
|
};
|
@ -0,0 +1,12 @@
|
|||||||
|
// Copyright; GhostPacket Games
|
||||||
|
#include "Character/AuraCharacterBase.h"
|
||||||
|
|
||||||
|
AAuraCharacterBase::AAuraCharacterBase()
|
||||||
|
{
|
||||||
|
PrimaryActorTick.bCanEverTick = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void AAuraCharacterBase::BeginPlay()
|
||||||
|
{
|
||||||
|
Super::BeginPlay();
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user