WoW:API PlayerModel SetUnit: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API PlayerModel SetUnit to API PlayerModel SetUnit without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<center>'''SetUnit''' ''-Documentation by DerGhulbus-''</center>
{{wowapi}}


Set the ModelFrame to display a model of the specified unit.
Set the ModelFrame to display a model of the specified unit.
Line 19: Line 19:


Use the ModelFrame if you want to display a fully 3D-model of a specific unit, like the one used in the CharacterFrame.
Use the ModelFrame if you want to display a fully 3D-model of a specific unit, like the one used in the CharacterFrame.
----
{{Template:WoW API}}

Latest revision as of 04:47, 15 August 2023

WoW API < PlayerModel SetUnit

Set the ModelFrame to display a model of the specified unit.

myPlayerModel:SetUnit("unit");

Arguments
"unit" : the UnitId of the unit which model you wish to display

Returns
nil

Description

Use the ModelFrame if you want to display a fully 3D-model of a specific unit, like the one used in the CharacterFrame.