dePog Posted March 10, 2016 Share Posted March 10, 2016 Hi Guys, Does anybody know if Papyrus has a way of checking what armor type the player is wearing, (eg. Ebony, Glass, Leather, etc) for chest, gauntlets, boots ? Thanks,dePog Link to comment Share on other sites More sharing options...
Hoamaii Posted March 10, 2016 Share Posted March 10, 2016 Yes, there is. Armor types have Keywords which you can find in the CK's Armor tab, like 'ArmorMaterialDaedric', 'ArmorMaterialGlass', (..)Ebony, etc. Then you can use a function like "OnObjectEquipped" on the player to tell you what type of armor he's wearing., like: Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference) if akBaseObject.Has Keyword(ArmorMaterialGlass) Debug.Notification("Player has equipped a glass armor piece") EndIf EndEvent Check the CK wiki about this: http://www.creationkit.com/OnObjectEquipped_-_Actor and http://www.creationkit.com/HasKeyword_-_Form Link to comment Share on other sites More sharing options...
dePog Posted March 10, 2016 Author Share Posted March 10, 2016 Great, thanks Hoamaii Just what the doctor ordered :) Regards,dePog Link to comment Share on other sites More sharing options...
thesniperdevil Posted March 13, 2016 Share Posted March 13, 2016 Food for thought- you may also have success using IsEquipped(Form akItem) if you need to check outside of an equip/ unequip event. Link to comment Share on other sites More sharing options...
Hoamaii Posted March 14, 2016 Share Posted March 14, 2016 Yeah, or 'PlayerRef.WornHasKeyword(Keyword akKeyword)'... It's funny how functions come to my mind when I don't need them and it can take me so long to find some others I'm looking for... ;) Link to comment Share on other sites More sharing options...
Recommended Posts