Hi guys. I wanted to create a game that when someone reaches a certain value in the Z axis, something happens.
This is what i did:
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /Verse.org/Verse }
using { /Fortnite.com/Characters }
using { /Fortnite.com/Playspaces}
TestingDevice1 := class(creative_device):
OnBegin<override>():void=
ShowText()
ShowText() : void =
Playspace : fort_playspace = GetPlayspace()
AllPlayers : []player = Playspace.GetPlayers()
if(Player: player = AllPlayers[0]):
if(FortniteCharacter : fort_character = Player.GetFortCharacter[]):
Transform := FortniteCharacter.GetTransform()
if(Transform.Translation.Z > 3500.0):
Print("Player is over Z: 3500.0")
So obvioulsy this runs only when the game is started, but it doesn’t happen every time someone goes at Z: 3500.0. Is there a function like “Update” from Unity to execute instructions every frame? Is there an alternative?
P.S. I’m very noob and english isn’t my first language so I’m sorry for any mistake