pxd2050 Posted September 5, 2022 Share Posted September 5, 2022 (edited) powerofthree's Papyrus Extender Function UnequipAllOfType(Actor akActor, int afArmorType, int[] aiSlotsToSkip) global nativeI don't know how to set aiSlotsToSkipIf i want to UnequipAll armor except slot[34], Can someone give me an example?thank you. Edited September 5, 2022 by pxd2050 Link to comment Share on other sites More sharing options...
pxd2050 Posted September 5, 2022 Author Share Posted September 5, 2022 help Link to comment Share on other sites More sharing options...
IsharaMeradin Posted September 5, 2022 Share Posted September 5, 2022 aiSlotsToSkip is an integer array. It is therefore expecting an integer array as input into that parameter. You need to create one. This goes in the empty state to declare your new array Int[] mySlotsToSkipThis goes inside of a function or event that will run prior to your usage of UnequipAllOfType mySlotsToSkip = new Int[1] ;change the number based on how many total entries you need mySlotsToSkip[0] = 34 ;define each entry in your new array as desired starting with index 0 Then when you use UnequipAllOfType pass your array into the aiSlotsToSkip parameter. Please note that I have not had need to utilize UnequipAllOfType so I cannot speak to effectiveness or optimization. However, I am confident that the approach will get the intended data type for the aforementioned parameter. Link to comment Share on other sites More sharing options...
pxd2050 Posted September 5, 2022 Author Share Posted September 5, 2022 aiSlotsToSkip is an integer array. It is therefore expecting an integer array as input into that parameter. You need to create one. This goes in the empty state to declare your new array Int[] mySlotsToSkipThis goes inside of a function or event that will run prior to your usage of UnequipAllOfType mySlotsToSkip = new Int[1] ;change the number based on how many total entries you need mySlotsToSkip[0] = 34 ;define each entry in your new array as desired starting with index 0 Then when you use UnequipAllOfType pass your array into the aiSlotsToSkip parameter. Please note that I have not had need to utilize UnequipAllOfType so I cannot speak to effectiveness or optimization. However, I am confident that the approach will get the intended data type for the aforementioned parameter.thank you very much, It do work now. Link to comment Share on other sites More sharing options...
Recommended Posts