UE4 - Creating a RPG #8 - Combat Test Dummy

노기현·2024년 10월 2일

Today's Lesson: Combat Test Dummy

Summary

1. We take a look at how we can create simple AI test dummy which we'll be using to test our melee combat and project based attacks.

2. We go over creating the character blueprint, setting up the AI's health and add an effect for when the AI takes damage.

Virtus Learning Hub


✅ Test Dummy Blueprint

◼️ New Blueprint Class - Character <SimpleAI>

  • Mesh
    - Skeletal Mesh: SK_Mannequin
  • Animation
    - Anim Class: ThirdPerson_AnimBP
  • Transform 조정
  • New Variable: Health
    Type: Float
    Default Value: 1
  • Level에 배치

✅ Take Damage Function

◼️ In Character Blueprint <SimpleAI>

  • New Function: TakeDamage
  • TakeDamage → Spawn Emitter at Location
    Emitter Template: P_Explosion
    Location: GetActorLocation(타깃 self)
    //데미지를 받았을 경우 TakeDamage 함수 호출을 통해 피격 파티클 생성

◼️ In Character Blueprint <SimpleAI> - Event Graph

테스트를 위한 Event Begin Play
(테스트 후 삭제)

✅ Result

  • Test Dummy, Damage Effect
profile
RPG 기획자 지망생

0개의 댓글