Modding:BodyPart: Difference between revisions
Jump to navigation
Jump to search
(Created page with "Represents a particular transformation the player can undergo. == Public Static Methods == === static BodyPart getBodyPart(string bodyPartName) === Gets body part object fro...") |
(add link to body part name list page) |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
=== static BodyPart getBodyPart(string bodyPartName) === | === static BodyPart getBodyPart(string bodyPartName) === | ||
Gets body part object from body part name (string). Returns null if no body part with that name can be found. | Gets body part object from body part name (string). Returns null if no body part with that name can be found. | ||
See [[Modding:Body part name list|name list]] for valid body part names | |||
== Public Methods == | == Public Methods == | ||
=== int getTransformationSeverity() === | === int getTransformationSeverity() === | ||
How transformed is this body part? 0=human | How transformed is this body part? | ||
* 0=human | |||
* 1=hideable non-human | |||
* 2=unhideable non-human | |||
=== void setTransformationSeverity(int severity) === | === void setTransformationSeverity(int severity) === | ||
Set how transformed this body part is. 0=human | Set how transformed this body part is. | ||
* 0=human | |||
* 1=hideable non-human | |||
* 2=unhideable non-human | |||
=== Species getSpeciesType() === | === [[Species]] getSpeciesType() === | ||
Gets the species the body part is set as. | Gets the species the body part is set as. | ||
=== void setSpeciesType(Species species) === | === void setSpeciesType([[Species]] species) === | ||
Sets what species the body part is. | Sets what species the body part is. | ||
[[Category:LUA Class Reference]] | [[Category:LUA Class Reference]] | ||
Latest revision as of 21:32, 9 January 2026
Represents a particular transformation the player can undergo.
Public Static Methods
static BodyPart getBodyPart(string bodyPartName)
Gets body part object from body part name (string). Returns null if no body part with that name can be found.
See name list for valid body part names
Public Methods
int getTransformationSeverity()
How transformed is this body part?
- 0=human
- 1=hideable non-human
- 2=unhideable non-human
void setTransformationSeverity(int severity)
Set how transformed this body part is.
- 0=human
- 1=hideable non-human
- 2=unhideable non-human
Species getSpeciesType()
Gets the species the body part is set as.
void setSpeciesType(Species species)
Sets what species the body part is.