Files
Remake/Source/CodRemake/Weapon/BaseWeapon.cpp
Nalobin Egor 91fb0eb3da add code
2023-11-19 19:30:07 +11:00

32 lines
631 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#include "BaseWeapon.h"
// Sets default values
ABaseWeapon::ABaseWeapon()
{
PrimaryActorTick.bCanEverTick = false;
Root = CreateDefaultSubobject<USceneComponent>(TEXT("Root"));
RootComponent = Root;
WeaponMeshComponent = CreateDefaultSubobject<USkeletalMeshComponent>(TEXT("Weapon"));
WeaponMeshComponent->SetupAttachment(Root);
}
// Called when the game starts or when spawned
void ABaseWeapon::BeginPlay()
{
Super::BeginPlay();
}
// Called every frame
// void ABaseWeapon::Tick(float DeltaTime)
// {
// Super::Tick(DeltaTime);
// }