Difference between revisions of "GetOutfit - ActorBase"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
m (Changed parameter description.)
imported>Qazaaq
(added required f4se version)
 
(One intermediate revision 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 default or sleeping [[Outfit]].
Returns this actors default or sleeping [[Outfit]].
Line 17: Line 18:
== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
Outfit myOutfit = Game.GetPlayer().GetActorBase().GetOutfit()
ActorBase PlayerBase = Game.GetPlayer().GetActorBase()
Debug.Trace(myOutfit)
 
Outfit defaultOutfit = PlayerBase.GetOutfit()
Debug.Trace(defaultOutfit)
</source>
</source>




<source lang="papyrus">
<source lang="papyrus">
Outfit mySleepOutfit = Game.GetPlayer().GetActorBase().GetOutfit(true)
ActorBase PlayerBase = Game.GetPlayer().GetActorBase()
Debug.Trace(mySleepOutfit)
 
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.

See Also[edit | edit source]