Made BlueprintReadWrite for weapon actors
This commit is contained in:
parent
21cfa4f2c9
commit
ab948c5d2f
@ -103,7 +103,9 @@ public:
|
||||
float WalkSpeed;
|
||||
float OriginalWalkSpeed;
|
||||
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
AActor* PrimaryWeaponActor;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
AActor* SecondaryWeaponActor;
|
||||
bool bIsPrimaryWeaponCreated = false;
|
||||
bool bIsSecondaryWeaponCreated = false;
|
||||
@ -148,13 +150,15 @@ public:
|
||||
UFUNCTION(BlueprintCallable, Category = Weapon)
|
||||
bool GetHasRifle();
|
||||
|
||||
UPROPERTY(EditAnywhere, Category = "Weapons")
|
||||
UPROPERTY(EditAnywhere, Category = "Weapons", BlueprintReadWrite)
|
||||
TSubclassOf<ABaseWeaponClass> PrimaryWeaponClass;
|
||||
|
||||
UPROPERTY(EditAnywhere, Category = "Weapons")
|
||||
UPROPERTY(EditAnywhere, Category = "Weapons", BlueprintReadWrite)
|
||||
TSubclassOf<ABaseWeaponClass> SecondaryWeaponClass;
|
||||
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
ABaseWeaponClass* PrimaryWeapon;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
ABaseWeaponClass* SecondaryWeapon;
|
||||
|
||||
UFUNCTION(BlueprintCallable, Category = "Weapons")
|
||||
|
Loading…
Reference in New Issue
Block a user