I added lots of spaces. You don't need the spaces but it made it easier to keep track of the parentheses while I was making the code. You can leave the spaces in. Its not "code" persay, but I've put the information you want to look at in code and /code.
Code: Select all
Y point = ${Math.Calc[ ${Me.Y}+${Math.Calc[ (120 * ${Math.Cos[${Math.Calc[${Me.Look}/128*90]}]}) * ${Math.Cos[90- ${Math.Calc[ 90-${Me.Heading.Degrees} ]}]} ]} ]}
X point = ${Math.Calc[ ${Me.X}-${Math.Calc[ (120 * ${Math.Cos[${Math.Calc[${Me.Look}/128*90]}]}) * ${Math.Sin[90- ${Math.Calc[ 90-${Me.Heading.Degrees} ]}]} ]} ]}
Z point= ${Math.Calc[ ${Me.Z} + ${Math.Calc[ 120 * ${Math.Sin[${Math.Calc[${Me.Look}/128*90]}]} ]} ]}
Just posted it in case someone could use it in any of their macros or whatever. Heh..took me a while to work out the proper math and test it so there you go.
|------------------------------------------------------------------
Here is something else you all might feel useful
Code: Select all
Locations are X Y Z format
location 10 feet north of you: ${Math.Calc[${Me.Y}+10]} ${Me.X} ${Math.Calc[${Me.Z}+1]}
location 10 feet southof you: ${Math.Calc[${Me.Y}-10]} ${Me.X} ${Math.Calc[${Me.Z}+1]}
location 10 feet east of you: ${Me.Y} ${Math.Calc[${Me.X}-10]} ${Math.Calc[${Me.Z}+1]}
location 10 feet west of you: ${Me.Y} ${Math.Calc[${Me.X}+10]} ${Math.Calc[${Me.Z}+1]}
location 10 feet up from you: ${Me.Y} ${Me.X} ${Math.Calc[${Me.Z}+10]}
location 10 feet down from you: ${Me.Y} ${Me.X} ${Math.Calc[${Me.Z}-10]}
Code: Select all



