Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Fill out your copyright notice in the Description page of Project Settings.
- #pragma once
- #include "GameFramework/Actor.h"
- #include "PushDoor.generated.h"
- UCLASS()
- class THEWOLF_API APushDoor : public AActor
- {
- GENERATED_BODY()
- public:
- // Sets default values for this actor's properties
- APushDoor();
- //The static mesh part of the actor
- UStaticMeshComponent* StaticMeshComponent;
- // Called when the game starts or when spawned
- virtual void BeginPlay() override;
- // Called every frame
- virtual void Tick( float DeltaSeconds ) override;
- // Function to handle the door hitting the person
- UFUNCTION()
- void OnHit(AActor* OtherActor, UPrimitiveComponent* OtherComp, FVector NormalImpulse, const FHitResult& Hit);
- bool doorHit;
- // wolf faces player rotator
- UPROPERTY(EditAnywhere)
- FRotator doorOpen;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement