Please give me steps to detect if an actor is wearing a helm

Post » Mon Nov 19, 2012 10:47 am

I am very tired and my head is not focusing on this. So I hoped some more "focused" moders could gift me with some code.

I know SKSE will be needed.


I figure it will be using these functions:


armor wornArmor = Me.GetWornForm(Armor.getMaskForSlot(30))as armor

if wornArmor.ishelmet()

IsLightArmor()

IsHeavyArmor()


edit : er... nevermind, now that I write that all down I see it clearly now... :facepalm:
User avatar
Laura Mclean
 
Posts: 3471
Joined: Mon Oct 30, 2006 12:15 pm

Post » Mon Nov 19, 2012 12:49 pm

I am very tired and my head is not focusing on this. So I hoped some more "focused" moders could gift me with some code.

I know SKSE will be needed.


I figure it will be using these functions:


armor wornArmor = Me.GetWornForm(Armor.getMaskForSlot(30))as armor

if wornArmor.ishelmet()

IsLightArmor()

IsHeavyArmor()


edit : er... nevermind, now that I write that all down I see it clearly now... :facepalm:

Lol I do that all the time. Sit here pondering, then post, then figure it out.
User avatar
Connor Wing
 
Posts: 3465
Joined: Wed Jun 20, 2007 1:22 am


Return to V - Skyrim