Mrhoony / UE4_StillTheyAlive

UE4 [3D, CO-OP] C++Game TeamProject
0 stars 0 forks source link

Create AI, Enemy, Behavior Component, BT , ActionObject ,ICharacter , TeamID Update PerkActionData #50

Closed ooweaJ closed 1 year ago

ooweaJ commented 1 year ago

캐리터들의 공통적으로 Hitted, Dead 해서 ICharacter를 만들어서 상속 받았고, Team ID 생성 Enemy에게 데미지가 잘 들어가는지 TakeDamage 생성, 사용할 Component 생성 및 정의 Status, Deck, State, Widget, Behavior 등

Behavior Component 에서는 블랙보드에 값을 관리해주는 Enum 타입 Set, is 함수들과 GetTarget,Location 등 블랙보드의 값을 변경 시켜준다.

AIController에 Behavior, Perception Component 생성해주고 Sight 만 이용하여 Target을 가져와서 Target과 거리에 따라 BehaviorComponent로 블랙보드 값을 변경한다.