WoW:API PromoteToLeader: Difference between revisions
Jump to navigation
Jump to search
m (Move page script moved page API PromoteToLeader to API PromoteToLeader without leaving a redirect) |
|||
(3 intermediate revisions by 3 users not shown) | |||
Line 14: | Line 14: | ||
== Example Code == | == Example Code == | ||
:If you have a character named " | :If you have a character named "Character", to promote him to leader you can type in-game: | ||
::/script PromoteToLeader(" | ::/script PromoteToLeader("Character"); |
Latest revision as of 04:47, 15 August 2023
Promotes a unit to party leader.
PromoteToLeader(unitId or playerName)
Arguments[edit]
- unitId
- UnitId - The unit to promote.
- playername
- PlayerName - The full name of the player to promote.
Returns[edit]
- nil
Example Code[edit]
- If you have a character named "Character", to promote him to leader you can type in-game:
- /script PromoteToLeader("Character");