Added Enemycollision script

Added enemy collision script and made it output the player being hit.
This commit is contained in:
MH261677 2022-11-07 17:40:38 +00:00
parent d6b1a1d0c2
commit aad21aa491
4 changed files with 35 additions and 2 deletions

View File

@ -0,0 +1,11 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "EnemyCollision.h"
void UEnemyCollision::BeginPlay()
{
Super::BeginPlay();
UE_LOG(LogTemp, Display, TEXT("TRIGGER COLLISION BOX SPAWNED IN"));
}

View File

@ -0,0 +1,19 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Components/BoxComponent.h"
#include "EnemyCollision.generated.h"
/**
*
*/
UCLASS(ClassGroup = (Custom), meta = (BlueprintSpawnableComponent))
class THE_TWILIGHT_ABYSS_API UEnemyCollision : public UBoxComponent
{
GENERATED_BODY()
protected:
virtual void BeginPlay() override;
};

View File

@ -6,7 +6,7 @@
}, },
{ {
"name": "UE5", "name": "UE5",
"path": "A:\\UnrealEngine\\UE_5.0" "path": "H:\\UE5\\UE_5.0"
} }
], ],
"settings": { "settings": {

View File

@ -7,7 +7,10 @@
{ {
"Name": "the_twilight_abyss", "Name": "the_twilight_abyss",
"Type": "Runtime", "Type": "Runtime",
"LoadingPhase": "Default" "LoadingPhase": "Default",
"AdditionalDependencies": [
"Engine"
]
} }
], ],
"Plugins": [ "Plugins": [