forked from Harrison1/unrealcpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTriggerBoxSpecificActor.h
More file actions
38 lines (28 loc) · 860 Bytes
/
TriggerBoxSpecificActor.h
File metadata and controls
38 lines (28 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// Harrison McGuire
// UE4 Version 4.20.2
// https://github.com/Harrison1/unrealcpp
// https://severallevels.io
// https://harrisonmcguire.com
#pragma once
#include "Engine/TriggerBox.h"
#include "TriggerBoxSpecificActor.generated.h"
UCLASS()
class UNREALCPP_API ATriggerBoxSpecificActor : public ATriggerBox
{
GENERATED_BODY()
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
// constructor sets default values for this actor's properties
ATriggerBoxSpecificActor();
// overlap begin function
UFUNCTION()
void OnOverlapBegin(class AActor* OverlappedActor, class AActor* OtherActor);
// overlap end function
UFUNCTION()
void OnOverlapEnd(class AActor* OverlappedActor, class AActor* OtherActor);
// specific actor for overlap
UPROPERTY(EditAnywhere)
class AActor* SpecificActor;
};