Making entity follow player's path

  • 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.

any name you wish

New Member
Nov 26, 2020
2
0
1
18
So, I'm trying to make a script that allows players to ride sheep like pigs except without saddles or carrots. Currently, I am testing this on wolves. Everything works but the wolf doesn't jump when it hits a wall and the wolf can't turn. I am not using any addons and will refuse to use any.

Code:
Code:
on right click on wolf:
    if player's tool is air:
        set {_%player%.pet} to targeted entity
        make player ride wolf
        set {%player%.rdn} to 1
        while {%player%.rdn} is 1:
            wait 1 tick
            push {_%player%.pet} In the horizontal direction of the player with force 0.2
            set {_look} to player's yaw * -1
            set {_loc} to location of {_%player%.pet}
            set {_loc}'s yaw to {_look} parsed as integer
            set {_loc}'s pitch to 0
            teleport {_%player%.pet} to {_loc}
            if player is not riding {_%player%.pet}:
                set {%player%.rdn} to 0
 
Status
Not open for further replies.