2023-02-12 21:26:22 +01:00
|
|
|
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
|
|
|
|
|
|
#include "RandomWeapon.h"
|
|
|
|
|
|
|
|
ARandomWeapon::ARandomWeapon()
|
|
|
|
{
|
|
|
|
RandomWeaponParameters = CreateDefaultSubobject<URandomWeaponParameters>(TEXT("Random Weapon Parameters"));
|
|
|
|
}
|
|
|
|
|
|
|
|
void ARandomWeapon::BeginPlay()
|
|
|
|
{
|
|
|
|
WeaponProperties = RandomWeaponParameters->GenerateRandomWeaponProperties();
|
|
|
|
WeaponSkeletalMesh = RandomWeaponParameters->PickRandomMesh();
|
|
|
|
FireSound = RandomWeaponParameters->PickRandomSoundBase();
|
|
|
|
FieldSystemActor = RandomWeaponParameters->PickRandomFieldSystem();
|
2023-06-23 22:06:18 +02:00
|
|
|
|
2023-02-12 21:26:22 +01:00
|
|
|
Super::BeginPlay();
|
|
|
|
}
|