Solved Grappling Hook doesn't work

  • 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 community!

    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.
Jun 9, 2019
2
0
0
Hello, I'm trying a few good hours to do a "Grappling Hook" in script but it does not want to work, I leave below the code and error pictures:

Code:
on fishing:
    if "%fishing state%" is "IN_GROUND":
        set {_loc} to location of fishing hook
        set yaw of {_loc} to player's yaw
        set pitch of {_loc} to player's pitch
        teleport player to {_loc}

Error pictures: http://prntscr.com/nzn8sc
nzn8sc
 
not sure why that is not working, maybe your skript version is out of date?
 
not sure why that is not working, maybe your skript version is out of date?


We finally solved it, we used another code.

Code:
on player fishing:
    if fishing state is Failed Attempt or in ground:
        push player (direction from player to location of hook) at speed 5
 
Status
Not open for further replies.