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 "GameFramework/Character.h"
- #include "BehaviorTree/BehaviorTree.h"
- #include "ZombieController.h"
- #include "ZombieCharacter.generated.h"
- UCLASS()
- class MESSINGWITHAI_API AZombieCharacter : public ACharacter
- {
- GENERATED_BODY()
- public:
- AZombieCharacter();
- UPROPERTY(EditAnywhere)
- UBehaviorTree* behaviorTree;
- protected:
- virtual void BeginPlay() override;
- public:
- virtual void Tick(float DeltaTime) override;
- virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;
- public:
- void ChangeRandomLocation();
- FTimerHandle changeLocationTimerHandle;
- void SetController(AZombieController* c) { controller = c; }
- private:
- AZombieController* controller;
- };
Advertisement
Add Comment
Please, Sign In to add comment