-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAICharacter4.h
45 lines (33 loc) · 1003 Bytes
/
AICharacter4.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "AIController.h"
#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "AICharacter4.generated.h"
class UPawnSensingComponent;
UCLASS()
class HIDEANDSEEK_API AAICharacter4 : public ACharacter
{
GENERATED_BODY()
public:
// Sets default values for this character's properties
AAICharacter4();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
UPROPERTY()
AAIController* AIC_Ref;
UPROPERTY(VisibleDefaultsOnly, Category = "Components")
UPawnSensingComponent* PawnSensing4;
UFUNCTION()
void SeePawn(APawn* Pawn);
UFUNCTION()
void OnHearNoise(APawn* OtherActor, const FVector& Location, float Volume);
UFUNCTION()
void NewMovement();
UPROPERTY(EditDefaultsOnly)
FTimerHandle Timer;
};