Controller

Visualizza obsoleti
non costruibile

The base class for controller objects, such as the HumanoidController object.

Sommario

Metodi

Eventi

Proprietà

Metodi

BindButton

void

Activates an overriding bind on the specified button.

Parametri

button: Enum.Button
caption: string

Restituzioni

void

Campioni di codice

Controller:BindButton1

local ControllerService = game:GetService("ControllerService")
local humanoidController = ControllerService:FindFirstChildOfClass("HumanoidController")
humanoidController:BindButton(Enum.Button.Dismount, "win!")

GetButton

Returns whether or not Button is being pressed.

Parametri

button: Enum.Button

Restituzioni

UnbindButton

void

Removes the bind on button.

Parametri

button: Enum.Button

Restituzioni

void

Eventi

ButtonChanged

Fired when the pressed state of a bound button is changed. This event can be used in conjunction with Controller:GetButton() to see whether a bound button is being pressed down or not.

Parametri

button: Enum.Button