Space Plunder
Loading...
Searching...
No Matches
ProjectileWeaponComponent.h
Go to the documentation of this file.
1// Fill out your copyright notice in the Description page of Project Settings.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Components/ActorComponent.h"
7#include "ProjectileWeaponComponent.generated.h"
8
9
10UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
11class WEAPONSYSTEM_API UProjectileWeaponComponent : public UActorComponent
12{
13 GENERATED_BODY()
14
15public:
16 UProjectileWeaponComponent();
17
18 void ShootProjectile();
19
20 virtual void LockOnTarget();
21
22 virtual void Aiming(bool bIsAiming);
23
24
25protected:
26 virtual void BeginPlay() override;
27
28private:
29 UPROPERTY()
30 USceneComponent* HomingTarget = nullptr;
31 UPROPERTY()
32 AActor* LockOnTargetActor = nullptr;
33
34
35 float CurrentLockOn = 0.0f;
36
37 FTimerHandle HomingTimerHandle;
38
39
40
41
42
43
44};
UCLASS(Blueprintable, BlueprintType, ClassGroup=(BucciGames), meta=(BlueprintSpawnableComponent)) class CHATSYSTEM_API UChatSystemComponent
Definition ChatSystemComponent.h:13