[UPD] Add AttackingDamage and attack to Melee Enemies

This commit is contained in:
Emilie Schott 2025-03-03 00:22:25 +01:00
parent 838fa55cc5
commit e61bf40013
4 changed files with 8 additions and 4 deletions

Binary file not shown.

BIN
Content/Legumix/Levels/LVL_GYM_00.umap (Stored with Git LFS)

Binary file not shown.

View File

@ -6,6 +6,7 @@ ALMEnemy::ALMEnemy()
{ {
PrimaryActorTick.bCanEverTick = true; PrimaryActorTick.bCanEverTick = true;
EnemyState = EEnemyState::EES_Chasing; EnemyState = EEnemyState::EES_Chasing;
AttackingDamage = 0.f;
} }
void ALMEnemy::BeginPlay() void ALMEnemy::BeginPlay()

View File

@ -32,6 +32,9 @@ protected:
UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (AllowPrivateAccess = "true"), Category = "Legumix") UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (AllowPrivateAccess = "true"), Category = "Legumix")
double AttackingRadius; double AttackingRadius;
UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (AllowPrivateAccess = "true"), Category = "Legumix")
float AttackingDamage;
/** /**
* Returns the distance between the enemy and a target. * Returns the distance between the enemy and a target.
* @param TargetedActor * @param TargetedActor