SkateboardController
*เนื้อหานี้จะพร้อมใช้งานในภาษาที่คุณเลือกในเร็วๆ นี้
A SkateboardController is an object responsible for translating PlayerActions to movements with a SkateboardPlatform.
สรุป
คุณสมบัติ
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.
วิธีการ
วิธีการรับทอดมาจากControllerActivates an overriding bind on the specified button.
Returns whether or not Button is being pressed.
Removes the bind on button.
อีเวนต์
Fired when any input state of the skateboard controller is updated.
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.
คุณสมบัติ
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.
วิธีการ
อีเวนต์
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.