-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpawnBox.h
42 lines (27 loc) · 918 Bytes
/
SpawnBox.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
#pragma once
#include "Kismet/GameplayStatics.h"
#include "SpawnBox.generated.h"
#define COLLISION_ITEM ECC_GameTraceChannel1
/**
*
*/
UCLASS()
class MUTANTSURVIVAL_API ASpawnBox : public AActor
{
GENERATED_UCLASS_BODY()
TSubobjectPtr<UBoxComponent> collisionBox;
public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Atttributes)
AActor* spawnPos;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Atttributes)
TArray<AActor*> positions;
UPROPERTY(EditDefaultsOnly, Category = Zombie)
TSubclassOf<class ABasicAI> ZombieClass;
AGameMode* gameMode;
UFUNCTION()
void OnBeginOverlap(class AActor* OtherActor, class UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult & SweepResult);
UFUNCTION()
void OnEndOverlap(class AActor* OtherActor, class UPrimitiveComponent* OtherComp, int32 OtherBodyIndex);
void spawnAt();
int32 herocount;
};