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.

Dxstin

Member
Oct 1, 2020
15
1
3
24
Does anyone know how to make a drivable car? If so how and what addons do I need for it?
 
im also trying to make somting like thatmaybe my code is helpful:
Code:
variables:
    {riding.%player%} = 0
    {NetherStar.%player%} = 0

command /ride cow: 
    trigger:
        make the player ride a cow
        loop all items in the inventory of player:
            if loop-item is an nether star named "&7● &9engine &7●":
                set {NetherStar.%player%} to 1
        wait 1 tick
        if {NetherStar.%player%} = 0:
            give player nether star named "&7● &9engine &7●"

command /reset-ride:
    trigger:
        set {NetherStar.%player%} to 0

on rightclick holding nether star:
    name of player's tool is "&7● &9engine &7●"
    if {riding.%player%} = 1:
        set {riding.%player%} to 0
        send "turned off" to player
    else if {riding.%player%} = 0:
        set {riding.%player%} to 1
        send "turnt on" to player

on drop:
    if event-item is nether star named "&7● &9engine &7●":
        cancel event

every tick:
    loop all players:
        loop all entities in radius 1 around loop-player:
            if {riding.%loop-player%} = 1:
                if loop-entity-2 is a cow:
                    if loop-entity-2 is on the ground:
                        push loop-entity-2  in the direction of the loop-player-1  at speed 0.3
[doublepost=1612992716,1612992685][/doublepost]i dont use any skript addons for it
 
Status
Not open for further replies.