[박치영] Effect Niagara System 으로 수정
parent
24fcdd9240
commit
d4283aef0d
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -15,6 +15,8 @@
|
|||
#include "Components/StatsComponent.h"
|
||||
#include "Definitions/CombatGameplayTags.h"
|
||||
#include "Engine/DamageEvents.h"
|
||||
#include "NiagaraFunctionLibrary.h"
|
||||
#include "NiagaraComponent.h"
|
||||
#include "Kismet/KismetSystemLibrary.h"
|
||||
#include "Kismet/KismetMathLibrary.h"
|
||||
#include "Kismet/GameplayStatics.h"
|
||||
|
|
@ -127,7 +129,8 @@ float ACombatCharacter::TakeDamage(float Damage, FDamageEvent const& DamageEvent
|
|||
UGameplayStatics::PlaySoundAtLocation(this, HitSound, PointDamageEvent->HitInfo.Location);
|
||||
|
||||
//Hit Effect
|
||||
UGameplayStatics::SpawnEmitterAtLocation(GetWorld(), HitEmitter, PointDamageEvent->HitInfo.Location);
|
||||
//UGameplayStatics::SpawnEmitterAtLocation(GetWorld(), HitEmitter, PointDamageEvent->HitInfo.Location);
|
||||
UNiagaraFunctionLibrary::SpawnSystemAtLocation(GetWorld(), HitEmitter, PointDamageEvent->HitInfo.Location);
|
||||
|
||||
if (CanReceiveHitReaction())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ public:
|
|||
TObjectPtr<class USoundBase> HitSound;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Hit", meta = (AllowPrivateAccess = "true"))
|
||||
TObjectPtr<class UParticleSystem> HitEmitter;
|
||||
TObjectPtr<class UNiagaraSystem> HitEmitter;
|
||||
|
||||
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "MovementSpeed", meta = (AllowPrivateAccess = "true"))
|
||||
EMovementSpeedMode MovementSpeedMode;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ public class D1 : ModuleRules
|
|||
|
||||
PublicDependencyModuleNames.AddRange(new string[] {
|
||||
"Core", "CoreUObject", "Engine", "InputCore", "HeadMountedDisplay",
|
||||
"EnhancedInput", "GameplayTags"
|
||||
"EnhancedInput", "GameplayTags", "Niagara"
|
||||
});
|
||||
|
||||
PublicIncludePaths.AddRange(new string[] { "D1" });
|
||||
|
|
|
|||
Loading…
Reference in New Issue