Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Invite a player to join your party.
InviteUnit(playerName)
Arguments[]
- playerName
- string - The name of the player you would like to invite to a group.
Details[]
- Do not prehook this function in Classic Wrath as the LFG/Group Finder uses it directly. Only Secure Hook it.
Patch changes[]
Patch 3.0.8 (2009-01-20): This function originally accepted unitIds as a possible argument, but was changed in the patch to accept only player names.
- Code should be updated to use UnitName("unit") instead.
- Code should be updated to use UnitName("unit") instead.
Patch 2.0.1 (2006-12-05): Added, replacing InviteByName
.
See also[]
- UninviteUnit
- InviteToGroup