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 19:19, 21. Sep 2019
Joined Jul 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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.

Last seen on 13:35, 23. Sep 2019
Joined Apr 2010
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
  • developer
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.