hi @TCGameStudio ,
Looks like there is a post/article in
The Chicken Test: Verse Code to Check if an Agent is a Fortnite Player or Character
the source code has been extracted using Screen Grab to MS Paint / Crop the code from the video save as file. Import file into MS Snipping Tool then use the Text Conversion tool.
Clicking “Copy Text” and post below
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /Fortnite.com/Characters}
using { /Fortnite.com/Playspaces}
using { /UnrealEngine.com/Temporary/UI}
using { /Fortnite.com/UI}
using { /UnrealEngine.com/Temporary/SpatialMath}
# See https://dev.epicgames.com/documentation/en-us/uefn/create-your-own-device-in-verse for how to create a verse device.
# A Verse-authored creative device that can be placed in a level
check_if_player := class(creative_device):
#creates a reference to the trigger device, variable name is MyTrigger/
Geditable
MyTrigger : trigger_device - trigger_device(}
# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
MyTrigger.TriggeredEvent.Subscribe(CheckStatus) #we reference the trigger device thru the MyTrigger variable, access its method and subscribe or bind to our fx.
# this ?agent assigns to Agent, then queries to assign to ValidAgent, reassigns to Player and calls GetFortNight character. If true, then we know it is.
CheckStatus(Agent :? agent): void =
if(ValidAgent := Agent?, Player := player[ValidAgent], Player.GetFortCharacter[]):
Print("This is a Fortnite Character.")
else:
Print("This is not a Fortnite Character.")