Can't get NPC leashable?

The docs and fortnight.digest.verse sugest that this should be possible, but no matter what way I do this is prints “failed to get npc leash”.

npc_leash_behavior<public> := class(npc_behavior):
    
    OnBegin<override>()<suspends>:void=
        
        if:
            Agent := GetAgent[]
            Character := Agent.GetFortCharacter[]
            Leashable := Character.GetFortLeashable[]
        then:
            Print("found the leash")
        else:
            Print("faild to get npc leash")

Am I doing something wrong here?

Perhaps this is useful to you:

I went and reread through the NPC Behavior docs and it says this: " The fort_leashable interface is a Guard-type NPC-specific interface". My npc type was custom, which I now know is not leashable.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.