Difference between revisions of "GetOutfit - ActorBase"
Jump to navigation
Jump to search
imported>Qazaaq m (Changed parameter description.) |
imported>Qazaaq m (Changed the example) |
||
Line 17: | Line 17: | ||
== Examples == | == Examples == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
ActorBase PlayerBase = Game.GetPlayer().GetActorBase() | |||
Debug.Trace( | |||
Outfit defaultOutfit = PlayerBase.GetOutfit() | |||
Debug.Trace(defaultOutfit) | |||
</source> | </source> | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
ActorBase PlayerBase = Game.GetPlayer().GetActorBase() | |||
Debug.Trace( | |||
Outfit sleepOutfit = PlayerBase.GetOutfit(true) | |||
Debug.Trace(sleepOutfit) | |||
</source> | </source> | ||
Revision as of 20:20, 19 April 2017
F4SE Member of: ActorBase Script
Returns this actors default or sleeping Outfit.
Syntax
Outfit Function GetOutfit(bool bSleepOutfit = false) Native
Parameters
- bSleepOutfit: Whether or not to return the actors sleep outfit.
- Default: False
Return Value
The Outfit for this actor.
Examples
ActorBase PlayerBase = Game.GetPlayer().GetActorBase()
Outfit defaultOutfit = PlayerBase.GetOutfit()
Debug.Trace(defaultOutfit)
ActorBase PlayerBase = Game.GetPlayer().GetActorBase()
Outfit sleepOutfit = PlayerBase.GetOutfit(true)
Debug.Trace(sleepOutfit)
Notes
None.