InviteUnit("target") not working????

#0 - April 1, 2009, 4:14 a.m.
Blizzard Post
while targeting a freindly player target,

/script InviteUnit("target")

produces the error message,

Cannot find player 'target'.

Why? This should work and you can search the entire web without an answer as to why it doesn't.
#1 - April 1, 2009, 4:30 a.m.
Blizzard Post
Hey Sàcrúm,

InviteUnit() was changed recently to only accept names as arguments. If you want to invite your target with the function, you can use /script InviteUnit(UnitName("target")) instead.