• Home
  • About
    • 게임 개발자 유정룡 photo

      게임 개발자 유정룡

      포트폴리오

    • Learn More
    • Email
    • Github
    • Bitbucket
  • Projects
    • All Projects
    • All Tags

ProjectDark - 18 - WeaponThrow

29 Sep 2021

Reading time ~1 minute

던질 무기를 블루프린트로 만들어주고, 몽타주에 AnimNotify를 만들어서 붙여주자

// Fill out your copyright notice in the Description page of Project Settings.


#include "WrathThrowWeaponAnimNotify.h"

#include "EnemyWrath.h"

void UWrathThrowWeaponAnimNotify::Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation)
{
	Super::Notify(MeshComp, Animation);

	AActor* Actor = MeshComp->GetOwner();
	if(Actor)
	{
		AEnemyWrath* Wrath = Cast<AEnemyWrath>(Actor);
		if(Wrath)
		{
			Wrath->ThrowWeapon();
		}
	}
}

라고 하기엔 너무 짧다….

이제 이 Notify를 붙여서 만들면

오오 잘 된다.
이제 공격할때 터지는것과 이펙트 등등 넣자.



Unreal Share Tweet +1