Issues with grappling hook

Updated on April 15, 2017 in  [R] Scripts
Share on Facebook0Tweet about this on Twitter0Share on Google+0Share on Reddit0
1 on April 15, 2017

Hey! I want to do a grappling hook in my game, but dont know how to do it. Can someone help me or explain it to me how it works? Would be great :).

  • Liked by
  • HunGARE
Reply
0 on April 15, 2017

You’ll probably want to look into raycasting. Basically, this shoots out a ray from a location, and you can get data on what it hits and other stuff too. You’ll probably want a raycast that checks what object it hits, and if it’s an acceptable surface then execute code to move the player’s position to that hit point. 

Gamad from the forums himself actually made a tutorial on grappling hooks.

https://www.youtube.com/watch?v=rhNmjKedcjw

  • Liked by
Reply
Cancel