I have this code but once i press the remote button 2 times it teleport the prop again but i want a new prop to teleport is it possible ?
using { /Verse.org/Simulation }
using { /Verse.org/Verse }
using { /Fortnite.com/Devices }
using { /Fortnite.com/Game }
using { /Fortnite.com/Characters }
TeleportPropToPlayerAfterDelay<public>(Prop:creative_prop, InPlayer:agent, SecondsBeforeTeleport:float)<suspends>:void=
Sleep(SecondsBeforeTeleport)
if:
FortCharacter := InPlayer.GetFortCharacter[]
Transform := FortCharacter.GetTransform()
Prop.TeleportTo[Transform.Translation, Transform.Rotation]
then:
Print("Prop Teleported to Player!")
signal_remote_mover := class(creative_device):
@editable
SignalRemoteManager:signal_remote_manager_device = signal_remote_manager_device{}
@editable
Prop:creative_prop = creative_prop{}
@editable
PropAsset : creative_prop_asset = DefaultCreativePropAsset
@editable
SecondsBeforeTeleport:float = 1.0
OnBegin<override>()<suspends>:void=
SignalRemoteManager.PrimarySignalEvent.Subscribe(SignalRemotePrimarySignalEvent)
SignalRemotePrimarySignalEvent<private>(Agent:agent):void=
if (TargetedPlayer := player[Agent]):
spawn{TeleportPropToPlayerAfterDelay(Prop, TargetedPlayer, SecondsBeforeTeleport)}