Files
Project-Reboot-3.0/Project Reboot 3.0/FortPlaysetItemDefinition.cpp
2023-03-08 01:39:09 -05:00

19 lines
703 B
C++

#include "FortPlaysetItemDefinition.h"
void UFortPlaysetItemDefinition::ShowPlayset(UFortPlaysetItemDefinition* PlaysetItemDef, AFortVolume* Volume)
{
auto VolumeToUse = Volume;
static auto PlaysetLevelStreamComponentClass = FindObject<UClass>("/Script/FortniteGame.PlaysetLevelStreamComponent");
auto LevelStreamComponent = (UPlaysetLevelStreamComponent*)VolumeToUse->GetComponentByClass(PlaysetLevelStreamComponentClass);
if (!LevelStreamComponent)
{
return;
}
static auto SetPlaysetFn = FindObject<UFunction>("/Script/FortniteGame.PlaysetLevelStreamComponent.SetPlayset");
LevelStreamComponent->ProcessEvent(SetPlaysetFn, &PlaysetItemDef);
LoadPlaysetOriginal(LevelStreamComponent);
}