Custom Loadout Creator
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /Verse.org/Random }
# ----------------------------------------------------------------------------------------------------------------------------------------------
# Author : ZeroYaHero
# Date : August 15 2023
# Name : Loadout Creator Device
# Summary : This device allows you to make tailored loadouts, or random loadouts with a structure that you prefer.
# ------------------------------------------------------------------------------------------------------------------------------------------------
loadout_granter := class():
Device : loadout_creator_device
Loadout : loadout
GrantLoadoutToOne(MaybeAgent : ?agent):void=
if(Agent := MaybeAgent?) {
Device.ItemRemover.Remove(Agent)
for(Item : Loadout.Items):
Item.GrantItem(Agent)
}
GrantLoadoutToAll(MaybeAgent : ?agent):void=
for(Player : Device.GetPlayspace().GetPlayers()) {
GrantLoadoutToOne(option{Player})
}
loadout := class<concrete>:
@editable
Items : []item_granter_device = array{}
@editable
GrantToOneTrigger : trigger_device = trigger_device{}
@editable
GrantToAllTrigger : trigger_device = trigger_device{}
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.