Guard Picking Up And Carrying Props
using { /Fortnite.com/Devices }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /Fortnite.com/Playspaces }
using { /Fortnite.com/Characters }
using { /Fortnite.com/AI }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /Verse.org/Simulation }
using { /Verse.org/Random }
# A Verse-authored creative device that can be placed in a level
guard_prop_carry := class(creative_device):
# A reference to the Guard Spawner device. This must be set in the Details panel of this Verse device
before starting the game.
@editable
GuardSpawner:guard_spawner_device = guard_spawner_device{}
# A reference to prop that will spawn when the game starts. This must be set in the Details panel of this
Verse device before starting the game.
@editable
Loot:creative_prop_asset = DefaultCreativePropAsset
# A reference to the guard that will spawn when the game starts
var MaybeGuardFollower:?agent = false
# A reference to the result of calling SpawnProp()
# The ?creative_prop value needs to be false so we can check if the prop did spawn.
# The spawn_prop_result will be overwritten so it can be set to anything.
var PropResult:tuple(?creative_prop, spawn_prop_result) = (false, spawn_prop_result.Ok)
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.