ecspresso
    Preparing search index...

    Function getStateMachineState

    • Get the current state of an entity's state machine.

      Parameters

      • ecs: StateMachineWorld

        ECS instance (structural typing)

      • entityId: number

        Entity to query

      Returns string | undefined

      The current state string, or undefined if entity has no stateMachine