trigger door

This commit is contained in:
Tyrel Souza 2018-02-19 21:06:26 -05:00
parent 037108763f
commit edb48dba0b
4 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -1,6 +1,7 @@
// Tyrel Souza 2018 // Tyrel Souza 2018
#include "OpenDoor.h" #include "OpenDoor.h"
#include "Engine/World.h"
#include "GameFramework/Actor.h" // See auto completes #include "GameFramework/Actor.h" // See auto completes
@ -19,7 +20,7 @@ void UOpenDoor::BeginPlay()
{ {
Super::BeginPlay(); Super::BeginPlay();
ActorThatOpens = GetWorld()->GetFirstPlayerController()->GetPawn();
} }

View File

@ -34,6 +34,5 @@ private:
UPROPERTY(EditAnywhere) UPROPERTY(EditAnywhere)
ATriggerVolume* PressurePlate; ATriggerVolume* PressurePlate;
UPROPERTY(EditAnywhere)
AActor* ActorThatOpens; AActor* ActorThatOpens;
}; };