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
m (Changed the example)
Line 17: Line 17:
== 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>



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.

See Also