View Single Post
06-17-10, 03:14 AM   #15
lilsparky
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2007
Posts: 117
it should be trivial to figure out how to turn your angle offset into an x coord -- if your theory is sound.

myDot:SetPoint("CENTER",UIParent,"CENTER",angle*factor,0)


angle = the angle between your facing and the direction to the POI (0 = aiming at it, <0 = you're looking to the right, >0 = you're looking to the left)

factor= some fixed value

it's just a matter of trial and error. turn your toon so that your POI is on the edge of the screen and then set your factor to put the point there. it would probably help to have some means of adjusting your factor while running the game (slash command or even just /script myMod.factor = xxxx)


once you plug in a factor that works, see how well it locks to the world. i'm guessing you'll be disappointed when change your camera distance.
  Reply With Quote