Skip to content

Instantly share code, notes, and snippets.

@dacanizares
Created April 19, 2020 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dacanizares/6f47164e3d86d9fd6d19bd129d888695 to your computer and use it in GitHub Desktop.
Save dacanizares/6f47164e3d86d9fd6d19bd129d888695 to your computer and use it in GitHub Desktop.
#pragma once
#include "CoreMinimal.h"
#include "AIController.h"
#include "MovementAIController.generated.h"
UCLASS()
class PROJECT999_API AMovementAIController : public AAIController
{
GENERATED_BODY()
public:
void BeginPlay() override;
UFUNCTION()
void GoToRandomWaypoint();
bool GetRandomPointInRadius(const FVector& Origin, float Radius, FVector& OutResult);
void OnMoveCompleted(FAIRequestID RequestID, const FPathFollowingResult& Result) override;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment