SkateboardController
*Pronto este contenido estará disponible en tu idioma seleccionado.
A SkateboardController is an object responsible for translating PlayerActions to movements with a SkateboardPlatform.
Resumen
Propiedades
The direction of movement, tied to the keys A and D. Must be 1 (right), 0 (straight), or -1 (left). Will refresh back to 0 unless constantly set.
The direction of movement, tied to the keys W and S. Must be an integer 1 (forward), 0 (null), or -1 (reverse). Will refresh back to 0 unless constantly set.
Métodos
Métodos heredados de ControllerActiva un enlace de reemplazo en el botón especificado.
Regresa si se está presionando el botón o no.
Elimina el enlace en el botón.
Eventos
Fired when any input state of the skateboard controller is updated.
Se ha disparado cuando se ha cambiado el estado presionado de un botón vinculado. Este evento se puede utilizar en conjunción con Controller:GetButton() para ver si se está presionando un botón vinculado o no.
Propiedades
Steer
The direction of movement, tied to the keys A and D. Must be 1 (right), 0 (straight), or -1 (left). Will refresh back to 0 unless constantly set.
Throttle
The direction of movement, tied to the keys W and S. Must be an integer 1 (forward), 0 (null), or -1 (reverse). Will refresh back to 0 unless constantly set.
Métodos
Eventos
AxisChanged
Fired when any input state of the skateboard controller is updated. The axis is fired with either "Throttle" if the throttle state of the skateboard was updated or "Steer" if the steering state of the skateboard was updated.