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 "CoreMinimal.h"
- #include "AIController.h"
- #include "BehaviorTree/BehaviorTreeComponent.h"
- #include "ZombieController.generated.h"
- /**
- *
- */
- UCLASS()
- class MESSINGWITHAI_API AZombieController : public AAIController
- {
- GENERATED_BODY()
- UBlackboardComponent* blackboardComp;
- UBehaviorTreeComponent* behaviorTreeComp;
- public:
- static const FName randomLocationKey;
- AZombieController();
- void Possess(APawn* pawn) override;
- void ChangeRandomLocation(APawn* pawn, UWorld* world);
- private:
- /*This might break if the levels go up and down in elevation*/
- FVector GetRandomLocation(const FVector& origin, unsigned int radius, UWorld* world, AActor* character);
- };
Advertisement
Add Comment
Please, Sign In to add comment