SkateboardPlatform

顯示已棄用項目

*此內容很快就會推出您所選的語言版本。

已棄用

A SkateboardPlatform can be used to create a skateboard. When characters get on a skateboard, they are stuck to it until they press the escape key. Until then, the character uses skateboard animations and travels faster than a walking character.

概要

屬性

  • 唯讀
    未複製
    平行讀取
    已棄用

    The SkateboardPlatform's active SkateboardController.

  • 唯讀
    未複製
    平行讀取
    已棄用

    The Humanoid that is controlling the 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.

  • 平行讀取
    已棄用

    If true, wheels won't roll without user input.

  • 平行讀取
    已棄用

    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.

屬性 繼承自 Part屬性 繼承自 BasePart屬性 繼承自 PVInstance

方法

方法 繼承自 BasePart方法 繼承自 PVInstance

活動

活動 繼承自 BasePart

屬性

唯讀
未複製
平行讀取

The SkateboardPlatform's active SkateboardController.

ControllingHumanoid

唯讀
未複製
平行讀取

The Humanoid that is controlling the SkateboardPlatform.

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.

StickyWheels

平行讀取

If true, wheels won't roll without user input.

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.

方法

ApplySpecificImpulse

void

Adds ''impulseWorld'' to the SkateboardPlatform's BasePart.Velocity.

參數

impulseWorld: Vector3

返回

void

活動

Equipped

Fired when the skateboard is equipped.

參數

humanoid: Instance

The Humanoid associated with the character equipping the skateboard.

skateboardController: Instance

MoveStateChanged

Fired when the SkateboardPlatform's SkateboardPlatform.ControllingHumanoid changes the force being used on the SkateboardPlatform.

參數

newState: Enum.MoveState
oldState: Enum.MoveState

Unequipped

Fired whenever the skateboard is unequipped.

參數

humanoid: Instance

The Humanoid associated with the character that unequipped the skateboard.