If(...) will not be executed.
This is my first Addon and I need some Help. The if() which includes the function FollowUnit() will not be executed. Also my OnWhisper() function seems to be executed twice.
Lua Code:
|
A player's name is not a valid unitID unless they're in your group.
In other words.. you can run FollowUnit on an arbitrary player name, but you can't run CheckInteractDistance on someone's name who isn't in your group. |
Ok but it doesn't work with characters in a group too. I tried the function with a macro and that did work.
|
Strip the realm out of their name, eg. arg2:match('^[^-]+')
|
All times are GMT -6. The time now is 07:52 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI