Advertisement
Guest User

doorOpen.h

a guest
May 13th, 2016
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.84 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #pragma once
  4.  
  5. #include "GameFramework/Actor.h"
  6. #include "PushDoor.generated.h"
  7.  
  8. UCLASS()
  9. class THEWOLF_API APushDoor : public AActor
  10. {
  11.     GENERATED_BODY()
  12.    
  13. public:
  14.     // Sets default values for this actor's properties
  15.     APushDoor();
  16.  
  17.     //The static mesh part of the actor
  18.     UStaticMeshComponent* StaticMeshComponent;
  19.  
  20.     // Called when the game starts or when spawned
  21.     virtual void BeginPlay() override;
  22.    
  23.     // Called every frame
  24.     virtual void Tick( float DeltaSeconds ) override;
  25.  
  26.     // Function to handle the door hitting the person
  27.         UFUNCTION()
  28.         void OnHit(AActor* OtherActor, UPrimitiveComponent* OtherComp, FVector NormalImpulse, const FHitResult& Hit);
  29.  
  30.         bool doorHit;
  31.  
  32.         // wolf faces player rotator
  33.         UPROPERTY(EditAnywhere)
  34.             FRotator doorOpen;
  35. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement