Verse Syntax

Why is Verse syntax so complicated! Could someone help me fix this code?

@editable
var trigger: trigger_device = trigger_device{}

@editable
var skeletalMesh: SkeletalMeshComponent = SkeletalMeshComponent()

# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=

    
    function OnTriggerEntered(player: Player): void {
        skeletalMesh.SetVisibility(false)
    }
    
    function OnReset(player: Player): void {
        skeletalMesh.SetVisibility(true)
    }

It’s not complicated, you’re just creating stuff up :eyes:

You can’t reference a skeletal mesh in Verse, and even less create an empty one

You need to use creative_prop instead

Great! Figures the only thing I need verse for isn’t made yet. Is there a way to do it with an animated mesh device?

You can probably use sequencers for that

1 Like