Checking The Distance In front of a player

Started by Bloxspace123451 on Thu, 08/22/2019 - 16:35

Topic category: Advanced modding

Last seen on 22:27, 20. Apr 2020
Joined Jul 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Checking The Distance In front of a player
Thu, 08/22/2019 - 16:35

Ok, this one may require some more advanced coding, but what Im trying to do is to make a system where when I click a button or something, it will print the distance from the player's position to the block I'm looking at, kinda like wall-climbing for spider-man or something, if anyone knows how I can use code in order to check a player's forward distance then I would really appreciate the help.

This is not possible yet,…
Thu, 08/22/2019 - 17:54

This is not possible yet, but we plan to introduce procedure get coordinates of the block player is looking at and then this will be totally doable with some simple math.