VehicleSeat

Artık kullanılmayanları göster

*Bu içerik, tercih ettiğin dilde çok yakında mevcut olacak.

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.

Özet

Özellikler

  • Salt Okunur
    Çoğaltılmamış
    Paralel oku

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

  • Paralel oku

    Toggles whether the VehicleSeat is active or not.

  • Paralel oku

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

  • Paralel oku

    The maximum speed that can be attained.

  • Salt Okunur
    Çoğaltılmamış
    Paralel oku

    The humanoid that is sitting in the seat.

  • Çoğaltılmamış
    Paralel oku
    Artık Kullanılmayan

    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.

  • Paralel oku

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

  • Çoğaltılmamış
    Paralel oku
    Artık Kullanılmayan

    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.

  • Paralel oku

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

  • Paralel oku

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

Şuradan alınan Özellikler: BasePartŞuradan alınan Özellikler: PVInstance

Yöntemler

  • Sit(humanoid : Instance):void

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

Şuradan alınan Yöntemler: BasePartŞuradan alınan Yöntemler: PVInstance

Etkinlikler

Şuradan alınan Etkinlikler: BasePart

Özellikler

AreHingesDetected

Salt Okunur
Çoğaltılmamış
Paralel oku

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

Disabled

Paralel oku

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

Paralel oku

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

MaxSpeed

Paralel oku

The maximum speed that can be attained.

Occupant

Salt Okunur
Çoğaltılmamış
Paralel oku

The humanoid that is sitting in the seat

Steer

Çoğaltılmamış
Paralel oku

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

Paralel oku

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

Throttle

Çoğaltılmamış
Paralel oku

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

Paralel oku

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

Torque

Paralel oku

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

TurnSpeed

Paralel oku

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

Yöntemler

Sit

void

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

Parametreler

humanoid: Instance

The humanoid being forced to sit in the VehicleSeat.


Dönüşler

void

Etkinlikler