30 lines
852 B
C++
Executable file
30 lines
852 B
C++
Executable file
#pragma once
|
|
#include "CoreMinimal.h"
|
|
#include "UObject/NoExportTypes.h"
|
|
#include "AttackBaseComponent.h"
|
|
#include "TentacleGrabAttack.generated.h"
|
|
|
|
class UMeshComponent;
|
|
|
|
UCLASS(Blueprintable, ClassGroup=Custom, meta=(BlueprintSpawnableComponent))
|
|
class UTentacleGrabAttack : public UAttackBaseComponent {
|
|
GENERATED_BODY()
|
|
public:
|
|
protected:
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, Instanced, Transient, meta=(AllowPrivateAccess=true))
|
|
UMeshComponent* HeadMesh;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
FName TerrainCheckSocket;
|
|
|
|
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
|
|
FVector TerrainCheckBox;
|
|
|
|
public:
|
|
UTentacleGrabAttack();
|
|
protected:
|
|
UFUNCTION(BlueprintCallable, BlueprintPure)
|
|
bool IsHeadNearTerrain() const;
|
|
|
|
};
|
|
|