Skip to main content

Execute_ApplyMaterialParameter

Description

Applies a material parameter mapping to the BaseObject, sending a packet and optionally applying a global material parameter if configured.

Parameters

ParameterDescription
BaseObjectThe entity to which the material parameter is applied
S1MaterialParamMapping ID (from MaterialParamMapping data table)

Examples

DescriptionBaseObjectCommandS1
Apply a material parameter mapping to SelfSelfApplyMaterialParameterMatParam_Dirty
Apply a global material parameter mapping to TargetTargetApplyMaterialParameterMatParam_Soot
Apply a custom material effect to SelfSelfApplyMaterialParameterMatParam_WetSurface