void SetBodyGroup( string name, int value )
void SetBodyGroup( int part, int value )

book_4_sparkGenerated
code_blocksInput

Description

The SetBodyGroup method allows you to set the value of a body group for a model by specifying the name of the body group and the desired value. This is useful for customizing the appearance of a model by enabling or disabling certain parts of it.

Usage

To use the SetBodyGroup method, you need to have an instance of the ModelRenderer class. Call the method with the name of the body group you want to modify and the integer value you want to set it to.

Example

// Assuming 'modelRenderer' is an instance of ModelRenderer
modelRenderer.SetBodyGroup("head", 1); // Sets the 'head' body group to value 1