0% found this document useful (0 votes)
102 views2 pages

Fortnite Verse Code

verse code for speed keycard

Uploaded by

napoliagiro
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
102 views2 pages

Fortnite Verse Code

verse code for speed keycard

Uploaded by

napoliagiro
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

# MADE BY OLESZYK

# THIS CODE IS EUPHORIAX PROPERTY. RESPECT THE RIGHTS OF THIS CODE


# SHARING THIS CODE COULD COME WITH A LEGAL CONSEQUENCES

using { /Fortnite.com/Characters }
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }

FastPowerUp := class(creative_device):

var PlayersMap:[player]CustomPlayer = map{}

@editable
Spawner_P1:player_spawner_device = player_spawner_device{}

@editable
Spawner_P2:player_spawner_device = player_spawner_device{}

@editable
CB:conditional_button_device = conditional_button_device{}

@editable
MM_Normal:movement_modulator_device = movement_modulator_device{}

@editable
MM_Fast:movement_modulator_device = movement_modulator_device{}
#Oleszyk Start
OnBegin<override>()<suspends>:void=
Spawner_P1.SpawnedEvent.Subscribe(OnPlayerSpawned)
Spawner_P2.SpawnedEvent.Subscribe(OnPlayerSpawned)
spawn:
CheckForItem()

CheckForItem()<suspends>:void=
loop:
for(Player:PlayersMap):
if(CB.IsHoldingItem[Player.MyAgentObj]):
if(Player.IsFast = false):
#Print("set player fast")
MM_Fast.Activate(Player.MyAgentObj)
set Player.IsFast = true
else:
if(Player.IsFast = true):
#Print("set player normal")
MM_Normal.Activate(Player.MyAgentObj)
set Player.IsFast = false
Sleep(1.0)

OnPlayerSpawned(Agent:agent):void=
if:
PlayerObj := player[Agent]
then:
if(PlayerExists := PlayersMap[PlayerObj]):
#do nothing, player already exists
else:
#Print("add player")
NewCustomPlayer:CustomPlayer = CustomPlayer{MyAgentObj:=Agent}
if:
set PlayersMap[PlayerObj] = NewCustomPlayer

OnPlayerRemoved(Player:player):void=
if(OldCustomPlayer:CustomPlayer = PlayersMap[Player]):
#remove the player from the players
var TempAllPlayersMap:[player]CustomPlayer = map{}
for (Key -> Value : PlayersMap, Key <> Player):
set TempAllPlayersMap = ConcatenateMaps(TempAllPlayersMap, map{Key
=> Value})

set PlayersMap = TempAllPlayersMap


# https://discord.gg/mN2pmUXBJW

You might also like