Hello everyone, I’m terrible at Verse and I don’t know this language (like any other) from the word at all, I want to make the player invisible for a while when buying in Vending Machine, I reviewed everything I found on YouTube and on this forum, but it didn’t help, there are always some problems.
using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
power_invisible := class(creative_device):
@editable
Trigger : trigger_device = trigger_device{}
BuyPowerInvisible(Agent:agent): void=
if (InvisiblePlayer := Agent, FortCharacter := InvisiblePlayer.GetFortCharacter[]):
FortCharacter.Hide()
spawn:
LostPowerInvisible(FortCharacter)
LostPowerInvisible(FortCharacter : fort_character)<suspends> : void =
Sleep(10.0)
FortCharacter.Show()
OnBegin<override>()<suspends>:void=
Trigger.TriggeredEvent(BuyPowerInvisible)