Granting Experience On Collectibles
132,454 Views
-
using { /Fortnite.com/Devices } using { /Verse.org/Simulation } using { /UnrealEngine.com/Temporary/Diagnostics } using { /Verse.org/Simulation/Tags } xp_token_tag := class(tag){} xp_tokens := class(creative_device): @editable Grant_XP_Accolade : accolades_device = accolades_device{} OnBegin<override>()<suspends>:void= TaggedTokens := GetCreativeObjectsWithTag(xp_token_tag{}) for (FoundObject: TaggedTokens): if (Token := collectible_object_device[FoundObject]): Token.CollectedEvent.Subscribe(GrantXP) GrantXP (Agent: agent): void = Grant_XP_Accolade.Award(Agent)using { /Fortnite.com/Devices } using { /Verse.org/Simulation } using { /UnrealEngine.com/Temporary/Diagnostics } using { /Verse.org/Simulation/Tags } xp_token_tag := class(tag){} xp_tokens := class(creative_device): @editable Grant_XP_Accolade : accolades_device = accolades_device{} OnBegin<override>()<suspends>:void= TaggedTokens := GetCreativeObjectsWithTag(xp_token_tag{}) for (FoundObject: TaggedTokens): if (Token := collectible_object_device[FoundObject]): Token.CollectedEvent.Subscribe(GrantXP) GrantXP (Agent: agent): void = Grant_XP_Accolade.Award(Agent)
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.