BarbasTheDog Posted February 5, 2013 Share Posted February 5, 2013 It can be either through vanilla scripting, which I dare say, is impossible, or through SkSE functions, Thanks. Link to comment Share on other sites More sharing options...
scrivener07 Posted February 5, 2013 Share Posted February 5, 2013 Yea, you get can biped objects through skse. What are you trying to do. Link to comment Share on other sites More sharing options...
BarbasTheDog Posted February 7, 2013 Author Share Posted February 7, 2013 Through SkSE I can get the Slot Mask, which is the sum of the hex. indexes which the armour occupies, but I wanted to get each slot (biped object) individually. E.g.: INT[ ] BipedObjects = New INT[32] BipedObjects = HelmetProperty.GetSlots() Which could return as an array or anything like that which the index of each individual biped object. Link to comment Share on other sites More sharing options...
scrivener07 Posted February 7, 2013 Share Posted February 7, 2013 http://codepad.org/RTIiwAn2I used this in a project Im working on. It runs through and finds all the armor your wearing and if it finds armor it runs through each of its armoraddons and swaps the firstperson mesh with the 3rd person. you can adapt it to yours needs if you want. The findallarmor function is expensive so I would try to optimize that. Link to comment Share on other sites More sharing options...
BarbasTheDog Posted February 7, 2013 Author Share Posted February 7, 2013 (edited) Thanks! So when the player equips the piece of armour I'll run GetWornForm() on each slot and if it returns the same form for two different slots, then this armour occupies them both! Something Like: Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference) INT Index = SlotList.Length - 1 ;<- Contains the hex. of each slot. INT ResultIndex INT[] Result = New INT[32] ;<- Hex. of which slots akBaseObject occupies. While Index >= 0 If akReference.GetWornForm(SlotList[index]) == akBaseObject Result[ResultIndex] = SlotList[index] ResultIndex += 1 EndIf Index -= 1 EndWhile EndEvent Thank you very much! :D Kudos! Edited February 7, 2013 by BarbasTheDog Link to comment Share on other sites More sharing options...
scrivener07 Posted February 7, 2013 Share Posted February 7, 2013 Looks good. I might try doing something more along what you just did. Link to comment Share on other sites More sharing options...
Recommended Posts