diff --git a/RoomEscape/Content/NewMap.umap b/RoomEscape/Content/NewMap.umap index e45fba3..3aa8c7e 100644 Binary files a/RoomEscape/Content/NewMap.umap and b/RoomEscape/Content/NewMap.umap differ diff --git a/RoomEscape/Content/NewMap_BuiltData.uasset b/RoomEscape/Content/NewMap_BuiltData.uasset index 368e67a..0e5dc29 100644 Binary files a/RoomEscape/Content/NewMap_BuiltData.uasset and b/RoomEscape/Content/NewMap_BuiltData.uasset differ diff --git a/RoomEscape/Source/RoomEscape/OpenDoor.cpp b/RoomEscape/Source/RoomEscape/OpenDoor.cpp index f7c115d..656adf6 100644 --- a/RoomEscape/Source/RoomEscape/OpenDoor.cpp +++ b/RoomEscape/Source/RoomEscape/OpenDoor.cpp @@ -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(); } diff --git a/RoomEscape/Source/RoomEscape/OpenDoor.h b/RoomEscape/Source/RoomEscape/OpenDoor.h index e39da16..8a45b2c 100644 --- a/RoomEscape/Source/RoomEscape/OpenDoor.h +++ b/RoomEscape/Source/RoomEscape/OpenDoor.h @@ -34,6 +34,5 @@ private: UPROPERTY(EditAnywhere) ATriggerVolume* PressurePlate; - UPROPERTY(EditAnywhere) - AActor* ActorThatOpens; + AActor* ActorThatOpens; };