trigger door
This commit is contained in:
parent
037108763f
commit
edb48dba0b
Binary file not shown.
Binary file not shown.
@ -1,6 +1,7 @@
|
||||
// Tyrel Souza 2018
|
||||
|
||||
#include "OpenDoor.h"
|
||||
#include "Engine/World.h"
|
||||
#include "GameFramework/Actor.h" // See auto completes
|
||||
|
||||
|
||||
@ -19,7 +20,7 @@ void UOpenDoor::BeginPlay()
|
||||
{
|
||||
Super::BeginPlay();
|
||||
|
||||
|
||||
ActorThatOpens = GetWorld()->GetFirstPlayerController()->GetPawn();
|
||||
}
|
||||
|
||||
|
||||
|
@ -34,6 +34,5 @@ private:
|
||||
UPROPERTY(EditAnywhere)
|
||||
ATriggerVolume* PressurePlate;
|
||||
|
||||
UPROPERTY(EditAnywhere)
|
||||
AActor* ActorThatOpens;
|
||||
AActor* ActorThatOpens;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user