클라이언트에서 재생을 시킬 Subsystem 추가하기
[/Script/ProjectD.MassEntityEffectSubsystem]
Cues=(CueId=Drone_Death,NiagaraEffectAsset="/Game/BlinkAndDashVFX/VFX_Niagara/NS_Blink_Fire.NS_Blink_Fire",SoundAsset="/Game/police-drone/Audio/DroneDestory.DroneDestory",EffectScale=(X=1.0,Y=1.0,Z=1.0),bPlaySound=true,bPlayNiagara=true)
그리고 기존의 Transform Scale을 0으로 만드는 부분에 추가하기
GetIsDead 관련 부분은 제대로 체크가 안되고 있는듯하다…현재 로그를 프레임별 찍었을때 다음과 같이 나온다
LogProjectD: Warning: [F=15082] [ServerDeathFlush] Deaths=1
LogProjectD: Warning: [F=15082] [ServerDeathFlush] Client=0 NetID=1124 MarkDead=1 Cue=1 Loc=X=-162.014 Y=859.371 Z=703.751
LogProjectD: Warning: [F=15082] [ServerDeathFlush] Client=0 ForceNetUpdate
LogProjectD: Warning: [DroneBubble] CleanAgent handleIdx=54 removed=1
LogProjectD: Warning: [F=15083] [ClientPreRemove] idx=54 NetID=1124 Dead=0 Cue=0 Pos=X=-156.892 Y=868.800 Z=715.444 DeathLoc=X=0.000 Y=0.000 Z=0.000 UseLoc=X=-156.892 Y=868.800 Z=715.444