WoW API: PlayerModel SetUnit

Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API PlayerModel SetUnit to API PlayerModel SetUnit without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.