ReferenceVerse

Get Fort Character

get fort character

Updated
Watch the Knot — get-fort-character in ~90 seconds.

One step on this black basalt vent and your pirate is blasting straight up into the sunny island sky, all thanks to a hidden trigger device.

Bridging the gap between a generic agent and the physics-ready fort_character interface requires a safe failable check.

We subscribe to the trigger device, unwrap the optional agent, then chain a second failable check to get the fort_character before calling ApplyLinearImpulse.

Reach for GetFortCharacter whenever you need to apply physics, read velocity, or check a player's physical state in your game.

geyser_pad := class(creative_device):
    @editable
    Pad : trigger_device = trigger_device{}
    Launch(Agent : ?agent) : void =
        if (A := Agent?, Char := A.GetFortCharacter[]):
            Char.ApplyLinearImpulse(vector3{X:=0.0, Y:=0.0, Z:=1500.0})
    OnBegin<override>()<suspends>:void =
        Pad.TriggeredEvent.Subscribe(Launch)

Build your own lesson with get-fort-character

Generate a personalized, compile-checked lesson grounded in this exact reference.

Build a lesson →