SiliconGhetto Engine API
    Preparing search index...

    Function playAnim

    • Start playing a named animation on an entity.

      Parameters

      • entity: number

        The entity ID

      • name: string

        The animation name previously registered with addAnimation

      Returns void

      sg.playAnim(player, 'walk');