Skip to content

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);

Argument

  • unitID UnitID : the target to use (player, target, pet, focus, etc.)

Returns

  • unitRPName: the unit RP name, using the first name and last name provided in its profile. Does not include the short title.

Example

Macro to salute your target using their RP name :

/run local unitRPName=TRP3_API.r.name("target"); SendChatMessage("Hello "..unitRPName);
Clone this wiki locally