Guest User

Controller.h

a guest
Oct 16th, 2017
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.80 KB | None | 0 0
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2.  
  3. #pragma once
  4.  
  5. #include "CoreMinimal.h"
  6. #include "AIController.h"
  7. #include "BehaviorTree/BehaviorTreeComponent.h"
  8. #include "ZombieController.generated.h"
  9.  
  10. /**
  11.  *
  12.  */
  13. UCLASS()
  14. class MESSINGWITHAI_API AZombieController : public AAIController
  15. {
  16.     GENERATED_BODY()
  17.    
  18.    
  19.         UBlackboardComponent* blackboardComp;
  20.     UBehaviorTreeComponent* behaviorTreeComp;
  21.  
  22. public:
  23.  
  24.     static const FName randomLocationKey;
  25.  
  26.     AZombieController();
  27.  
  28.     void Possess(APawn* pawn) override;
  29.  
  30.     void ChangeRandomLocation(APawn* pawn, UWorld* world);
  31.  
  32. private:
  33.     /*This might break if the levels go up and down in elevation*/
  34.     FVector GetRandomLocation(const FVector& origin, unsigned int radius, UWorld* world, AActor* character);
  35.    
  36. };
Advertisement
Add Comment
Please, Sign In to add comment