LEAP Documentation 40220
Documentation for the LEAP project
BTTask_SwitchWeapons.h
Go to the documentation of this file.
1// Copyright Blue Isle Studios Inc 2022. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "BehaviorTree/BTTaskNode.h"
7#include "PlayerStructs.h"
8#include "BTTask_SwitchWeapons.generated.h"
9
10UCLASS()
11class PROJECTX_API UBTTask_SwitchWeapons : public UBTTaskNode
12{
13 GENERATED_BODY()
14
15 /* If the weapon fires on equip, this will fire the selected weapon automatically and swap back . Useful for firing abilities or switching to secondary. */
16 UPROPERTY(Category = Node, EditAnywhere)
18
19 virtual EBTNodeResult::Type ExecuteTask(UBehaviorTreeComponent& OwnerComp, uint8* NodeMemory) override;
20 virtual FString GetStaticDescription() const override;
21
22};
EEquipSlot
Definition: PlayerStructs.h:25
Definition: BTTask_SwitchWeapons.h:12