Professional Documents
Culture Documents
Fortnite Verse Code
Fortnite Verse Code
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /Fortnite.com/Characters }
using { /UnrealEngine.com/Temporary/SpatialMath }
teleport_device := class(creative_device):
@editable
TeleportSignalRemoteManager: signal_remote_manager_device =
signal_remote_manager_device{}
@editable
HudMessageDevice: hud_message_device = hud_message_device{}
TeleportEvent(Agent:agent):void=
spawn:
TeleportActivated(Agent)
TeleportActivated(Agent:agent)<suspends>:void=
AllPlayers := GetPlayspace().GetPlayers()
EnemyPos := ClosestCharacter.GetTransform()
if:
InitialCharacter.TeleportTo[EnemyPos.Translation,
EnemyPos.Rotation]
HudMessageDevice.Show(Agent)