So I'm able to enable protected lua, like most are. And I now want to experiment with casting AOE spells.
I realize I can execute a macro such as:
/run if IsUsableSpell("Blizzard") and GetSpellCooldown("Blizzard")==0 then CastSpellByName("Blizzard") CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop() end;
And this will cast Blizzard based on where my mouse pointer is. I was wondering if anyone knew what function WoW uses to find the mouse coordinates? I was hoping I could maybe change this function in a manner so I don't need to actually move the mouse + do the 2D/3D conversions.
And, is there a function that essentially does 3D to 2D? (I know there are threads on doing the implementation, I'm just curious if there is a wow function that does it too)
Thanks!