VehicleSeat

顯示已棄用項目

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

The VehicleSeat objects welds a player to the seat when the player touches the seat. It then forwards the movement keys to any connected motor joints, allowing control of a vehicle.

While VehicleSeats are great for making simple vehicles they do have some limitations. Movement control will only detect motors connected directly to the vehicle seat, or through another rigid connection. This means that if you have a wheel connected to a beam which is then welded to the seat it will work fine, however if you have the wheel connected to a part, which is connected by a hinge to the rest of the car, it will not work.

概要

屬性

  • 唯讀
    未複製
    平行讀取

    Displays how many hinges are detected by the VehicleSeat. Useful for debugging vehicle designs.

  • 平行讀取

    Toggles whether the VehicleSeat is active or not.

  • 平行讀取

    If true, a fancy speed bar will be displayed speed on screen that tells you what speed the Vehicle is moving at.

  • 平行讀取

    The maximum speed that can be attained.

  • 唯讀
    未複製
    平行讀取

    The humanoid that is sitting in the seat.

  • 未複製
    平行讀取
    已棄用

    The direction of movement, tied to the keys A and D. Must be one of 1 (right), 0 (straight), or -1 (left). Will refresh back to 0 unless constantly set.

  • 平行讀取

    Functions identically to VehicleSeat.Steer, but the value is not an integer.

  • 未複製
    平行讀取
    已棄用

    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.

  • 平行讀取

    Functions identically to VehicleSeat.Throttle, but the value is not an integer.

  • 平行讀取

    How fast the vehicles will be able to attain VehicleSeat.MaxSpeed. The greater the number, the faster it will reach the maximum speed.

  • 平行讀取

    The speed at which the vehicle will turn. Higher numbers can cause problems and are not necessarily better.

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

方法

  • Sit(humanoid : Instance):void

    Forces the character with the specified Humanoid to sit in the VehicleSeat.

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

活動

活動 繼承自 BasePart

屬性

AreHingesDetected

唯讀
未複製
平行讀取

Displays how many hinges are detected by the VehicleSeat. Useful for debugging vehicle designs.

Disabled

平行讀取

Toggles whether the VehicleSeat is active or not. If the seat is disabled then it will not automatically weld a character to it on collision and will not allow a character to control the connected vehicle.

HeadsUpDisplay

平行讀取

If true, a fancy speed bar will be displayed speed on screen that tells you what speed the Vehicle is moving at.

MaxSpeed

平行讀取

The maximum speed that can be attained.

Occupant

唯讀
未複製
平行讀取

The humanoid that is sitting in the seat

Steer

未複製
平行讀取

The direction of movement, tied to the keys A and D. Must be one of 1 (right), 0 (straight), or -1 (left). Will refresh back to 0 unless constantly set.

SteerFloat

平行讀取

Functions identically to VehicleSeat.Steer, but the value is not an integer.

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.

ThrottleFloat

平行讀取

Functions identically to VehicleSeat.Throttle, but the value is not an integer.

Torque

平行讀取

How fast the vehicles will be able to attain VehicleSeat.MaxSpeed. The greater the number, the faster it will reach the maximum speed.

TurnSpeed

平行讀取

The speed at which the vehicle will turn. Higher numbers can cause problems and are not necessarily better.

方法

Sit

void

Forces the character with the specified Humanoid to sit in the VehicleSeat.

參數

humanoid: Instance

The humanoid being forced to sit in the VehicleSeat.


返回

void

活動