كود الاخفاء بالجلوس

mail@pastecode.io avatar
unknown
julia
6 months ago
807 B
3
Indexable
Never
using { /Fortnite.com/Characters }
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }

hide_crouch := class(creative_device):


    CheckCrouch(FortCharacter : fort_character, IsCrouched : logic): void =
        if(IsCrouched = true):
            FortCharacter.Hide()
        if(IsCrouched = false):
            FortCharacter.Show()

    JionPlayers (Agent : agent): void =
        if(FortCharacter := Agent.GetFortCharacter[]):
            FortCharacter.CrouchedEvent().Subscribe(CheckCrouch)
            

    OnBegin<override>()<suspends>:void=
        for (Player : GetPlayspace().GetPlayers(), FortCharacter := Player.GetFortCharacter[]):
            FortCharacter.CrouchedEvent().Subscribe(CheckCrouch)
        GetPlayspace().PlayerAddedEvent().Subscribe(JionPlayers)