Added Enemycollision script
Added enemy collision script and made it output the player being hit.
This commit is contained in:
parent
d6b1a1d0c2
commit
aad21aa491
11
Source/the_twilight_abyss/EnemyCollision.cpp
Normal file
11
Source/the_twilight_abyss/EnemyCollision.cpp
Normal 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"));
|
||||||
|
}
|
19
Source/the_twilight_abyss/EnemyCollision.h
Normal file
19
Source/the_twilight_abyss/EnemyCollision.h
Normal 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;
|
||||||
|
};
|
@ -6,7 +6,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "UE5",
|
"name": "UE5",
|
||||||
"path": "A:\\UnrealEngine\\UE_5.0"
|
"path": "H:\\UE5\\UE_5.0"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"settings": {
|
"settings": {
|
||||||
|
@ -7,7 +7,10 @@
|
|||||||
{
|
{
|
||||||
"Name": "the_twilight_abyss",
|
"Name": "the_twilight_abyss",
|
||||||
"Type": "Runtime",
|
"Type": "Runtime",
|
||||||
"LoadingPhase": "Default"
|
"LoadingPhase": "Default",
|
||||||
|
"AdditionalDependencies": [
|
||||||
|
"Engine"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"Plugins": [
|
"Plugins": [
|
||||||
|
Loading…
Reference in New Issue
Block a user