Перейти к основному содержанию

Player.PlayerFlying

Interface used to manipulate player's flying ability and state.

Index

Methods

get

  • get(): boolean
  • Returns boolean

    true if player is flying, false otherwise.

getEnabled

  • getEnabled(): boolean
  • Returns boolean

    true if player is allowed to fly, false otherwise.

set

  • set(enabled: boolean): void
  • Changes player's current flying state, call Player.PlayerFlying.setEnabled to be able to set this property to true.


    Parameters

    • enabled: boolean

      whether the player should fly or not

    Returns void

setEnabled

  • setEnabled(enabled: boolean): void
  • Enables or disables player's ability to fly.


    Parameters

    • enabled: boolean

      whether the player can fly or not

    Returns void