This repository has been archived on 2025-04-18. You can view files and clone it, but cannot push or open issues or pull requests.
LegumeMix/Source/LegumeMix/Private/LMStaticResupply.cpp
2025-02-08 11:06:16 +01:00

30 lines
564 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#include "LMStaticResupply.h"
#include "Ammo/LMAmmo.h"
ULMStaticResupply::ULMStaticResupply()
{
PrimaryComponentTick.bCanEverTick = true;
}
void ULMStaticResupply::BeginPlay()
{
Super::BeginPlay();
}
void ULMStaticResupply::SpawnResupply_Implementation()
{
FVector SpawnLocation = GetOwner()->GetActorLocation();
FRotator SpawnRotation = GetOwner()->GetActorRotation();
ALMAmmo* Ammo = GetWorld()->SpawnActor<ALMAmmo>(AmmoToSpawn, SpawnLocation, SpawnRotation);
}