allows you to read data from the seat
you can use this component to create smart vehicles.
component name - wasd
methods:
- wasd.isSeated():boolean - returns true if there is someone in the seat
- wasd.isW():boolean - returns true if the W button is pressed
- wasd.isS():boolean - returns true if the S button is pressed
- wasd.isA():boolean - returns true if the A button is pressed
- wasd.isD():boolean - returns true if the D button is pressed
- wasd.getADvalue():float - returns float from -1 to 1. in fact, the angle of the steering wheel
- wasd.getWSvalue():float - returns a value from -1 to 1, that is, the direction of the desired movement
- wasd.isMouseL():boolean - returns the state of the left mouse button while the player is in the seat (it often only works with betterAPI)
- wasd.isMouseC():boolean - returns the state of the middle mouse button (requires betterAPI)
- wasd.isMouseR():boolean - returns the state of the right mouse button while the player is in the seat (it often only works with betterAPI)
- wasd.isQ():boolean - outputs a pulse signal when the Q button is pressed in the seat (if you have any mod installed that uses this (for example, fant mod), it will only work with betterAPI)
- wasd.isR():boolean - outputs a pulse signal when the R button is pressed in the seat (if you have any mod installed that uses this (for example, fant mod), it will only work with betterAPI)