Difference between revisions of "GetOutfit - ActorBase"
Jump to navigation
Jump to search
imported>Qazaaq (Added default parameter) |
imported>Qazaaq (added required f4se version) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''F4SE Member of:''' [[ActorBase Script]] | '''F4SE Member of:''' [[ActorBase Script]] | ||
{{Template:Papyrus:RequiredF4SE|version=0.2.0}} | |||
Returns this actors [[Outfit]]. | Returns this actors default or sleeping [[Outfit]]. | ||
== Syntax == | == Syntax == | ||
Line 9: | Line 10: | ||
== Parameters == | == Parameters == | ||
*bSleepOutfit: Whether or not to return the actors | *bSleepOutfit: Whether or not to return the actors sleep outfit. | ||
**'''Default''': False | **'''Default''': False | ||
Line 17: | Line 18: | ||
== 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> | ||
Latest revision as of 02:14, 21 January 2018
F4SE Member of: ActorBase Script
Requires F4SE version 0.2.0 or higher.
Returns this actors default or sleeping Outfit.
Syntax[edit | edit source]
Outfit Function GetOutfit(bool bSleepOutfit = false) Native
Parameters[edit | edit source]
- bSleepOutfit: Whether or not to return the actors sleep outfit.
- Default: False
Return Value[edit | edit source]
The Outfit for this actor.
Examples[edit | edit source]
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[edit | edit source]
None.