CALCYAWTO

CALCYAWTO(<xpos>,<zpos>,[#yaw],[#distance])

Type: Action

Category: Calculations

Permission: N/A

Since Minecraft Version: v1.6.2

Since Version: v0.9.10

Minor: 9

API: 12

Patch: 10


Description

Calculates the absolute yaw angle and optionally the distance to the specified coordinates.

Returns the calculated yaw value.

Example
CALCYAWTO(0,0,#variant1,#distance)
#variant2 = CALCYAWTO(0,0,,#distance)

// If you want to use this yaw value you have to add 180, because of legacy reasons
INC(#variant1,180)
LOOK(%#variant1%)

LOG(%#distance%)

Changelog
  • Added em v0.9.10: