Updated GoatAI to Trigger Attack Animations

This commit is contained in:
Philip W 2023-04-28 03:40:41 +01:00
parent 744b24c8c1
commit 9ecbd9c52d
10 changed files with 14 additions and 20 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Content/BlueprintAI/AI/AIBruh.uasset (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

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

Binary file not shown.

View File

@ -357,6 +357,9 @@ void ATurnBaseCombatV2::DamagePlayer(int Damage, FString DamageType)
const FString Command = FString::Printf(TEXT("PlayCameraShakeShoot"));
PlayerActor->CallFunctionByNameWithArguments(*Command, AR, nullptr, true);
RedVignetteMaterialInstance->SetScalarParameterValue(FName("BlendWeight"), 1.0f);
const FString Command2 = FString::Printf(TEXT("TriggerAttackAnimation"));
EnemyActor->CallFunctionByNameWithArguments(*Command2, AR, nullptr, true);
//Ends Combat if either the player or enemy is dead
}