BodyPartCollection (object)
From GCAWiki
The BodyPartCollection object is primarily found in the Body property of the Character object. It contains collections of character body parts.
Contents |
Properties & functions
Count
Description: Returns the number of character body parts in the collection.
Prototype: Count
Parameters: none
Returns: [Long] The number of body parts in the collection.
Example:
Char.Body.Count
Item
Description: Returns a reference to the selected character body part.
Prototype: Item(LocationIdKey)
Parameters:
LocationIdKey- [Variant] The numeric index (Long) or the collection key (String) of the body part to return.
Returns: [Object Reference] A reference to the BodyPart (object) which contains the selected body part.
Notes: Item is the default property of the BodyPartCollection object, so you may exclude it when accessing the collection.
Example (implicit usage as the default property; common/idiomatic usage):
Char.Body(LocId).DR
Example (explicit usage):
Char.Body.Item(LocId).DR