tes3wearablePart⚓︎
A container class that maps a body part id to its male and female body parts.
Properties⚓︎
female
⚓︎
The body part object used for female actors.
Returns:
result
(tes3bodyPart)
male
⚓︎
The body part object used for male actors.
Returns:
result
(tes3bodyPart)
type
⚓︎
The type of the wearable part. Maps to tes3.activeBodyPart
namespace.
Returns:
result
(tes3.activeBodyPart)
valid
⚓︎
If true, the wearable is valid, and should be operated with.
Returns:
result
(boolean)
Methods⚓︎
getPart
⚓︎
Convenience function to get the relevant body part. Pass isFemale
if the desired body part is female. If no female body part exists, the male bodyPart will be returned. This returns nil
for invalid wearables.
local result = myObject:getPart(isFemale)
Parameters:
isFemale
(boolean): If true, return the female part if it is valid. Otherwise, return the male part.
Returns:
result
(tes3bodyPart)