-
Notifications
You must be signed in to change notification settings - Fork 18
TRP3_API.r.name(unitID)
Ben edited this page Aug 16, 2022
·
3 revisions
If the unit is known, returns the full RP name of a unit.
local unitRPName = TRP3_API.r.name(unitID);
-
unitID
UnitID : the target to use (player
,target
,pet
,focus
, etc.)
-
unitRPName
: the unit RP name, using the first name and last name provided in its profile. Does not include the short title.
Macro to salute your target using their RP name :
/run local unitRPName=TRP3_API.r.name("target"); SendChatMessage("Hello "..unitRPName);