i have a voting system for my survival game where players can decide on what map to play, i was wondering how i can teleport existing objects to 3 possible locations depending on the map.
for example, if the map is Bunker > Teleport the healing machine to the 3 random locations, and so on with other objects in general
also is it possible to make it activate depending on what Map trigger has been triggered?
i have triggers for each map, so it’s more organized
So far i made it basic, but i don’t know how i can make and run the random code, depending on the location
i made an object list array, so in future i can add multiple creative_props to teleport depending on the map, like vending machines, walls and so on
using { /Fortnite.com/Characters }
using { /Fortnite.com/Devices }
using { /Fortnite.com/Game }
using { /Fortnite.com/UI }
using { /Verse.org/Simulation }
using { /Verse.org/Random }
using { /Verse.org/Assets }
using { /Verse.org/Colors }
using { /UnrealEngine.com/Temporary/SpatialMath }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/UI }
GAME_MAP_Props := class(creative_device):
@editable MapTrigger_1 : trigger_device = trigger_device{}
@editable MapTrigger_2 : trigger_device = trigger_device{}
@editable MapTrigger_3 : trigger_device = trigger_device{}
@editable MapTrigger_4 : trigger_device = trigger_device{}
@editable GameObject : []Game_Objects = array{}
OnBegin<override>()<suspends> : void =
loop:
MapTrigger_1.TriggeredEvent.Await()
MapTrigger_2.TriggeredEvent.Await()
MapTrigger_3.TriggeredEvent.Await()
MapTrigger_4.TriggeredEvent.Await()
Game_Objects := class<concrete><unique>:
@editable GameObject : creative_prop = creative_prop{}