Verse Help

I’m trying to learn how to make a Verse script for my map. I’m actually very bad at coding, my brain just can’t keep the information in.

I just want a Verse script for when a player enters a Mutator Zone they just keep jumping repeatedly whenever they touch the ground or an object (where they can stand on).

Anyone know how to make this?

Thank you! :heart:

Hello,

I’m not aware of any way to trigger a players jump input in Verse. (Someone correct me if I’m wrong)

A non-verse way to get this behavior might be to place an invisible Kevin Cube down where you want people to repeatedly jump(It would be more like repeatedly bounce though)

Learning coding isn’t about keeping the information in, it’s more like speaking a language - where you don’t try to remember the word for things and how to form sentences, you’ve just been using the words and forming the sentences long enough that you know how to speak.

1 Like

You are right you can’t trigger any input in verse.

What one can do and I’ve seen other people do too is use a movement Modulator with only Upwards Impulse enabled

and you can then use this script. that constantly checks if a player is on the ground and if they are applies the impulse

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

jump_manager := class(creative_device):
    @editable MutatorZone : mutator_zone_device = mutator_zone_device{}
    @editable MovementModulator : movement_modulator_device = movement_modulator_device{}
    OnBegin<override>()<suspends>:void=
        MutatorZone.AgentEntersEvent.Subscribe(AgentEntered)

    AgentEntered(Agent:agent):void=
        spawn. JumpLoop(Agent)

    JumpLoop(Agent:agent)<suspends>:void=
        if(FortCharacter:=Agent.GetFortCharacter[]):
            loop:
                if(not MutatorZone.IsInVolume[Agent]):
                    return
                if(FortCharacter.IsOnGround[]):
                    MovementModulator.Activate(Agent)
                Sleep(0.1)


1 Like