Difference between revisions of "GetOutfit - ActorBase"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
m (Changed the example)
imported>Qazaaq
(Added script example.)
Line 18: Line 18:
Outfit myOutfit = Game.GetPlayer().GetActorBase().GetOutfit()
Outfit myOutfit = Game.GetPlayer().GetActorBase().GetOutfit()
Debug.Trace(myOutfit)
Debug.Trace(myOutfit)
</source>
<source lang="papyrus">
Outfit mySleepOutfit = Game.GetPlayer().GetActorBase().GetOutfit(true)
Debug.Trace(mySleepOutfit)
</source>
</source>



Revision as of 19:52, 19 April 2017

F4SE Member of: ActorBase Script

Returns this actors Outfit.

Syntax

Outfit Function GetOutfit(bool bSleepOutfit = false) Native

Parameters

  • bSleepOutfit: Whether or not to return the actors sleeping Outfit.

Return Value

The Outfit for this actor.

Examples

Outfit myOutfit = Game.GetPlayer().GetActorBase().GetOutfit()
Debug.Trace(myOutfit)


Outfit mySleepOutfit = Game.GetPlayer().GetActorBase().GetOutfit(true)
Debug.Trace(mySleepOutfit)

Notes

None.

See Also