Difference between revisions of "GetWornForm - Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Moorleiche2k
imported>Moorleiche2k
 
Line 21: Line 21:
; Obtain the player's currently equipped cuirass
; Obtain the player's currently equipped cuirass
Armor Cuirass = Game.GetPlayer().GetWornForm(0x00000004) as Armor</source>
Armor Cuirass = Game.GetPlayer().GetWornForm(0x00000004) as Armor</source>
== Notes: ==
Might be broken for Skyrim 1.6.89.0.6 and SKSE 1.05.09. Reading out slotmasks 30-43 with only "Iron Armor" (Biped Object 32 - body) equipped returned "Forms" for slotmasks 30,31,36-39 instead of just 32. "Circlet of Peerless Restoration" (Biped Object 42 - circlet) didn't returned anything.


== See Also ==
== See Also ==

Latest revision as of 10:40, 16 June 2012

SKSE Member of: Actor Script

Returns the form of the item worn with the specified slotMask. (This function requires SKSE)

Syntax[edit | edit source]

Form Function GetWornForm(int slotMask) native

Parameters[edit | edit source]

Return Value[edit | edit source]

  • The form of the equipped item with the specified slot mask.

Examples[edit | edit source]

; Obtain the player's currently equipped cuirass
Armor Cuirass = Game.GetPlayer().GetWornForm(0x00000004) as Armor

See Also[edit | edit source]