Execute_ApplyMaterialParameter
Description
Applies a material parameter mapping to the BaseObject, sending a packet and optionally applying a global material parameter if configured.
Parameters
| Parameter | Description |
|---|
| BaseObject | The entity to which the material parameter is applied |
| S1 | MaterialParamMapping ID (from MaterialParamMapping data table) |
Examples
| Description | BaseObject | Command | S1 |
|---|
| Apply a material parameter mapping to Self | Self | ApplyMaterialParameter | MatParam_Dirty |
| Apply a global material parameter mapping to Target | Target | ApplyMaterialParameter | MatParam_Soot |
| Apply a custom material effect to Self | Self | ApplyMaterialParameter | MatParam_WetSurface |