@ascentbv/ts-common - v1.0.123
    Preparing search index...

    Class ControlsUtilAbstract

    Index

    Constructors

    Methods

    • Locks both camera and movement controls for the player. Useful for cutscenes, dialogue, or scripted sequences.

      Parameters

      • player: Player

        The player to apply the lock to.

      Returns void

    • Unlocks both camera and movement controls for the player.

      Parameters

      • player: Player

        The player to remove the lock from.

      Returns void

    • Disables camera rotation and looking around for the player.

      Parameters

      • player: Player

        The player to restrict camera control for.

      Returns void

    • Enables camera movement (looking around) for the player.

      Parameters

      • player: Player

        The player to allow camera control for.

      Returns void

    • Disables all movement-related input for the player. Prevents walking, strafing, sneaking, and mounting.

      Parameters

      • player: Player

        The player to restrict movement for.

      Returns void

    • Enables all movement-related input for the player. Allows walking, strafing, sneaking, and mounting.

      Parameters

      • player: Player

        The player to allow movement for.

      Returns void

    • Hides all HUD (heads-up display) elements from the player's screen. This includes health, hotbar, and crosshair.

      Parameters

      • player: Player

        The player whose HUD should be hidden.

      Returns void