Targeting another unit using LUA
Hey fellow modders...
I was wondering if there is any way to target another unit in a similar fashion to the /target command via the API? I've updated the mod Paranoia to work with the 2.4 combat log, and I'd like to add a feature to allow it to target an enemy player it detects.
I know WoW 2.0 broke many things like auto-targeting/spellcasting, but SmartBuff is able to autocast a buff for you if you hit a hotkey or scroll the mousewheel. Can I do something similar with targeting? I don't necessarily need the addon to target without user intervention, I'd just like to add a feature like "Press F12 to target hostile" or something along those lines.
Thanks.
|