【UE4】敵が衝突しプレイヤー死亡

敵がPlayerに1ダメージを与える。

 

IVEnemy

ApplyDamage

BaseDamage=1

playerdied_anydamage

 

IVPlayer

AnyDamageでGameStateの関数playerDiedを呼び出し

playerdied

 

IVGameState

関数:playerDied

create OnGameOver EventDispather

playerdied_gamestate

 

レベルBP

OnGameOverをbindしてGAME OVER画面(ウィジェット)を表示

createWidget

addToViewport

bindongameover

 

Leave a Comment.