mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 10:52:22 +01:00
dispatch request
This commit is contained in:
19
Project Reboot 3.0/FortPlaysetItemDefinition.cpp
Normal file
19
Project Reboot 3.0/FortPlaysetItemDefinition.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user