mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
a bit
cheat spawnpickup, teams on >s4, bga spawning, gameplayeffects apply from abilityset
This commit is contained in:
30
Project Reboot 3.0/vendingmachine.h
Normal file
30
Project Reboot 3.0/vendingmachine.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include "reboot.h"
|
||||
#include "BuildingGameplayActor.h"
|
||||
#include "GameplayStatics.h"
|
||||
|
||||
using ABuildingItemCollectorActor = ABuildingGameplayActor;
|
||||
|
||||
void FillVendingMachine(ABuildingItemCollectorActor* VendingMachine)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void FillVendingMachines()
|
||||
{
|
||||
static auto VendingMachineClass = FindObject<UClass>("/Game/Athena/Items/Gameplay/VendingMachine/B_Athena_VendingMachine.B_Athena_VendingMachine_C");
|
||||
auto AllVendingMachines = UGameplayStatics::GetAllActorsOfClass(GetWorld(), VendingMachineClass);
|
||||
|
||||
for (int i = 0; i < AllVendingMachines.Num(); i++)
|
||||
{
|
||||
auto VendingMachine = (ABuildingItemCollectorActor*)AllVendingMachines.at(i);
|
||||
|
||||
if (!VendingMachine)
|
||||
continue;
|
||||
|
||||
FillVendingMachine(VendingMachine);
|
||||
}
|
||||
|
||||
AllVendingMachines.Free();
|
||||
}
|
||||
Reference in New Issue
Block a user