I was trying to create a loot island type system for my UEFN map, but ran into an issue when trying to make the island appear. How would I mass relocate props and devices when the island spawns?
I would recommend teleporting them with verse’s .TeleportTo() function which works on devices and Props. I would advice AGAINST using the sequencer as it’s known to not function well for players who join mid-game.
A sample script I suppose you could use is the following
using { /Verse.org/Simulation }
using { /Fortnite.com/Devices }
using { /UnrealEngine.com/Temporary/SpatialMath }
propNtransform := class<concrete>:
@editable Prop:?creative_object = false
@editable Transform:transform = transform{}
TP():void=
if(RealProp:=Prop?):
if. RealProp.TeleportTo[Transform]
else:
Print("PropNTransform: No Prop set")
prop_moving_device:=class(creative_device):
@editable PropNTransform : []propNtransform = array{}
@editable Trigger : trigger_device = trigger_device{}
OnBegin<override>()<suspends>:void=
Trigger.TriggeredEvent.Subscribe(OnTriggerActivated)
OnTriggerActivated(Agent:?agent):void=
for(Prop:PropNTransform):
Prop.TP()
That’s what I was originally trying, but couldn’t figure out how to move such a large amount. Then I realized I can just attach them all as child actors to one prop, and moving that prop will bring the others with it.
Marking your response as a solution for other people looking to move objects.
1 Like