VehicleSeat

Hiển Thị Bản Đã Lỗi Thời

*Nội dung này sẽ sớm có sẵn bằng ngôn ngữ bạn chọn.

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.

Tóm Tắt

Thuộc Tính

  • Chỉ Đọc
    Không Sao Chép
    Đọc Song Song

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

  • Đọc Song Song

    Toggles whether the VehicleSeat is active or not.

  • Đọc Song Song

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

  • Đọc Song Song

    The maximum speed that can be attained.

  • Chỉ Đọc
    Không Sao Chép
    Đọc Song Song

    The humanoid that is sitting in the seat.

  • Không Sao Chép
    Đọc Song Song
    Đã Lỗi Thời

    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.

  • Đọc Song Song

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

  • Không Sao Chép
    Đọc Song Song
    Đã Lỗi Thời

    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.

  • Đọc Song Song

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

  • Đọc Song Song

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

  • Đọc Song Song

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

Thuộc Tính kế thừa từ BasePartThuộc Tính kế thừa từ PVInstance
  • Không Sao Chép
    Không Thể Viết Kịch Bản
    Đọc Song Song
  • Không Sao Chép
    Không Thể Viết Kịch Bản
    Đọc Song Song

Phương Pháp

  • Sit(humanoid : Instance):void

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

Phương Pháp kế thừa từ BasePartPhương Pháp kế thừa từ PVInstance

Sự Kiện

Sự Kiện kế thừa từ BasePart

Thuộc Tính

AreHingesDetected

Chỉ Đọc
Không Sao Chép
Đọc Song Song

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

Disabled

Đọc Song Song

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

Đọc Song Song

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

MaxSpeed

Đọc Song Song

The maximum speed that can be attained.

Occupant

Chỉ Đọc
Không Sao Chép
Đọc Song Song

The humanoid that is sitting in the seat

Steer

Không Sao Chép
Đọc Song Song

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

Đọc Song Song

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

Throttle

Không Sao Chép
Đọc Song Song

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

Đọc Song Song

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

Torque

Đọc Song Song

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

TurnSpeed

Đọc Song Song

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

Phương Pháp

Sit

void

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

Tham Số

humanoid: Instance

The humanoid being forced to sit in the VehicleSeat.


Lợi Nhuận

void

Sự Kiện