Help with Vehicles

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Strafbefehl

New Member
Jul 25, 2020
5
0
1
24
Hello, I need help with vehicles, because the steering from left and right does not work!

Minecraft version: 1.12.2


Code:
command /Auto:
    trigger:
        give fire charge named "&aAuto" to player
      
on rightclick with fire charge:
    make the player ride a armor stand
 
 
command /Autos: 
    trigger:
        make the player ride a armor stand
 
 
on rightclick with armor stand:
    make the player ride a armor stand
      
 
 
on vehicle steer left:
    vehicle of player is on ground
    set yaw of player to -0.1
on vehicle steer right:
    vehicle of player is on ground
    set yaw of player to +0.1
on vehicle steer forward:
    vehicle of player is on ground
    push vehicle of player horizontally forward at speed 1
on vehicle steer backward:
    vehicle of player is on ground
    push vehicle of player horizontally backwards at speed 0.2
  
on vehicle exit:
    if event-entity is a armor stand:
        kill event-entity
 
I don't think you can set the yaw of the player directly, instead you would have to teleport them to rotate them
 
Status
Not open for further replies.