Difference between revisions of "GetWornForm - Actor"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Fg109
(Created page for GetWornForm)
 
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 ==

Revision as of 08:18, 16 June 2012

SKSE Member of: Actor Script

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

Syntax

Form Function GetWornForm(int slotMask) native

Parameters

Return Value

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

Examples

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

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