mirror of
https://github.com/FortniteModdingHub/FNGameProj.git
synced 2026-08-26 19:43:31 +00:00
34 lines
817 B
C++
34 lines
817 B
C++
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Weapons/FortWeapon.h"
|
|
#include "Components/SkeletalMeshComponent.h"
|
|
#include "Weapons/FortWeapon.h"
|
|
|
|
// Sets default values
|
|
AFortWeapon::AFortWeapon()
|
|
{
|
|
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
|
|
PrimaryActorTick.bCanEverTick = true;
|
|
|
|
RootComponent = CreateDefaultSubobject<USceneComponent>(L"DefaultSceneRoot");
|
|
|
|
/* Creating the default weapon mesh */
|
|
WeaponMesh = CreateDefaultSubobject<USkeletalMeshComponent>(L"WeaponMesh");
|
|
WeaponMesh->AttachTo(RootComponent);
|
|
}
|
|
|
|
// Called when the game starts or when spawned
|
|
void AFortWeapon::BeginPlay()
|
|
{
|
|
Super::BeginPlay();
|
|
|
|
}
|
|
|
|
// Called every frame
|
|
void AFortWeapon::Tick(float DeltaTime)
|
|
{
|
|
Super::Tick(DeltaTime);
|
|
|
|
}
|
|
|