1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Grappling Hook

Discussion in 'Skript' started by xCoini, Oct 12, 2019.

  1. x

    xCoini Member

    Joined:
    Apr 19, 2019
    Messages:
    8
    Likes Received:
    0
    Hey guys! Is it possible to make a grappling hook?
    Code (Text):
    1. on fishing:
    2.     if "%fishing state%" is "IN_GROUND":
    3.         set {_loc} to location of fishing hook
    4.         set yaw of {_loc} to player's yaw
    5.         set pitch of {_loc} to player's pitch
    6.         teleport player to {_loc}
    the code loads successfully but does not work.
     
  2. DieHollander_

    DieHollander_ Well-Known Member

    Joined:
    Mar 25, 2018
    Messages:
    171
    Likes Received:
    12
    What part doesn't work about it? And did you try to debug it, by messaging "%fishing state%" to see what it says for example?
     
  3. x

    xCoini Member

    Joined:
    Apr 19, 2019
    Messages:
    8
    Likes Received:
    0
    Oh jemand deutsches, ich bezweifle das es verboten ist deutsch zu reden. Also:
    Ich habe mir einiges angeguckt und war ziemlich am verzweiflen.
    Das Debuggen hab ich schon versucht
    der Part der nicht klappt ist das mit yaw und pitch.
    Das witzige ist, diesen Code habe ich sogar von dir:
    https://www.bilder-upload.eu/bild-aa5f3f-1570952569.png.html
     
    #3 xCoini, Oct 13, 2019
    Last edited: Oct 13, 2019
  4. DieHollander_

    DieHollander_ Well-Known Member

    Joined:
    Mar 25, 2018
    Messages:
    171
    Likes Received:
    12
    I'm not German lol...
    Read my username, it says "Hollander", Holland is not Germany sir.
     
  5. Drioz

    Drioz Active Member

    Joined:
    Jun 10, 2018
    Messages:
    25
    Likes Received:
    2
    Code (Text):
    1. on fishing:
    2.     if "%fishing state%" is "IN_GROUND" or "REEL_IN":
    3.         push player upwards at speed 2
    4.         push player forwards at speed 2
    This is another way to make a grappling hook
     
  6. DieHollander_

    DieHollander_ Well-Known Member

    Joined:
    Mar 25, 2018
    Messages:
    171
    Likes Received:
    12
    What if the player looks the other way =)
     
  7. Drioz

    Drioz Active Member

    Joined:
    Jun 10, 2018
    Messages:
    25
    Likes Received:
    2
    Well when I tried to make it in the direction of the fishing hook it pushed the player in the opposite direction so that's the easy way xD
     
Loading...