Advertisement
Guest User

Untitled

a guest
Jan 12th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.69 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include "Components/ActorComponent.h"
  4. #include "OpenDoor.generated.h"
  5.  
  6.  
  7. UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
  8. class BUILDINGESCAPE_API UOpenDoor : public UActorComponent
  9. {
  10.     GENERATED_BODY()
  11.  
  12. public:
  13.     UOpenDoor();
  14.  
  15.     virtual void BeginPlay() override;
  16.  
  17.     void OpenDoor();
  18.  
  19.     void CloseDoor();
  20.  
  21.     virtual void TickComponent( float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction ) override;
  22.  
  23. private:
  24.  
  25.     UPROPERTY(VisibleAnywhere)
  26.     float OpenAngle = 90.f;
  27.  
  28.     UPROPERTY(EditAnywhere)
  29.     ATriggerVolume *PressurePlate;
  30.  
  31.     AActor *ActorThatOpens;
  32.     AActor *Owner;
  33.     float MaxOpenAngle;
  34.     float MinOpenAngle
  35.    
  36. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement