Hi, can someone help me out to modify the code so every number of the range gets picked once?
using { /Verse.org/Simulation }
using { /Fortnite.com/Game }
using { /Fortnite.com/Devices }
using { /Verse.org/Random }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /UnrealEngine.com/Temporary/SpatialMath }
Define a class for the cinematic trigger device
Randomizer := class(creative_device):
@editable
StartRandom : trigger_device = trigger_device{}
@editable
SeqHouse1 : cinematic_sequence_device = cinematic_sequence_device{}
@editable
SeqHouse2 : cinematic_sequence_device = cinematic_sequence_device{}
@editable
SeqHouse3 : cinematic_sequence_device = cinematic_sequence_device{}
OnBegin<override>()<suspends>:void=
StartRandom.TriggeredEvent.Subscribe(PlayRandom)
PlayRandom(Agent : ?agent):void=
RandomChoice := GetRandomInt(1,3)
if(RandomChoice = 1 ):
SeqHouse1.Play()
if(RandomChoice = 2 ):
SeqHouse2.Play()
if(RandomChoice = 3 ):
SeqHouse2.Play()