Minor - Bullet Spawning Method

La méthode est quasiment finie, il reste juste un pb au niveau de l'objet/la classe à appeler.
This commit is contained in:
NisemonoQ
2025-10-17 17:13:48 +02:00
parent f57f6b8832
commit 17c6475397
4 changed files with 44 additions and 25 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include "M4_Projectile.h"
#include "CoreMinimal.h"
#include "GameFramework/Pawn.h"
#include "InputAction.h"
@@ -11,6 +12,7 @@ UCLASS()
class AM4_PlayerPawn : public APawn
{
GENERATED_BODY()
public:
AM4_PlayerPawn();
@@ -31,6 +33,9 @@ protected:
UPROPERTY()
UInputAction* ShootAction;
UPROPERTY(VisibleAnywhere)
AM4_Projectile* Proj;
//bool HasShot = false;
float MoveSpeed = 500.f;
FVector2D MeshScale = FVector2D(0.6f, 0.5f);